MessageBus class
A simple message bus for pub/sub style communication.
- Annotations
-
- @Injectable.new(scope: "environment", eager: false)
Constructors
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
-
dispose(
) → void - Dispose the bus.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publish(
String topic, [dynamic data]) → void - Publish a message on a given topic.
-
subscribe<
T> (String topic, void onData(T)) → StreamSubscription< T> - Subscribe to a topic.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited