Closed marcojakob closed 9 years ago
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
Use a null check and return the entire stream instead of always filtering the stream with
where
.Note: Applies to
EventBus
andHierarchicalEventBus
.