listen method

Stream<Event<Object>> listen(
  1. String event
)
inherited

listen to an event on this EventEmitter as a stream. A True value will be emitted whenever the event by this name is emitted.

Use the special event name of 'all' to subscribe to all events.

Implementation

Stream<Event> listen(String event) {
  return eventStream.stream.where((e) => e.name == event); //.map<bool>((event) => true);
}