Dispatches events to listeners using the Dart Stream API. The EventBus enables decoupled applications. It allows objects to interact without requiring to explicitly define listeners and keeping track of them.
Not all events should be broadcasted through the EventBus but only those of general interest.
Events are normal Dart objects. By specifying a class, listeners can filter events.
) → void
- Destroy this EventBus. This is generally only in a testing context.
dynamic event ) → void
Fires a new event on the event bus with the specified
Invocation invocation ) → dynamic
Invoked when a non-existent method or property is accessed. [...]
T>( ) → Stream< T>
Listens for events of Type
Tand its subtypes. [...]
) → String
Returns a string representation of this object.