FlutterBus class
A universal FlutterBus pub/sub for Flutter Apps. Use like so FlutterBus.on
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
-
destroy(
) → void - Destroy this FlutterBus. This is generally only in a testing context.
-
on<
T> (void on(T event)) → StreamSubscription< T> -
Listens for events of Type
T
and its subtypes. -
publish(
Object event) → void -
Publishes a new event on the event bus with the specified
event
.