We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use a null check and return the entire stream instead of always filtering the stream with where.
where
Stream on([Type eventType]) { if (eventType == null) { return streamController.stream; } else { return streamController.stream.where((event) => event.runtimeType == eventType); } }
Note: Applies to EventBus and HierarchicalEventBus.
EventBus
HierarchicalEventBus
The text was updated successfully, but these errors were encountered:
Fix Issue #13: Improve on() stream when no type is specified
447da02
No branches or pull requests
Use a null check and return the entire stream instead of always filtering the stream with
where
.Note: Applies to
EventBus
andHierarchicalEventBus
.The text was updated successfully, but these errors were encountered: