EventBusManager class final
A global, asynchronous broadcast event bus.
Events are not retained: listeners only receive events fired after they
subscribe. Prefer concrete event types over dynamic in application code.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fire(
dynamic event) → void -
Fires
eventto all matching listeners. -
listen<
T> (void onData(T event)) → EventSubscription< T> -
Listens for events of type
T. -
owner(
[EventSubscriptionOwner? owner]) → EventBusOwnerScope -
Creates a listener scope owned by
owner.