MessageService class abstract
Supports the publish/subscribe pattern.
in fmvvm there is only one instance of this service but multiple subscriptions can be added to the same message name.
The MessengeService allows for loose coupling between objects where anything in the system can
send information of interest without being aware of what other parts of the system may use
that information.
- Implementers
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
-
clearAllSubscriptions(
) → void - Removes all existing subscriptions.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publish(
Message message) → void - Publishes a message to be received by any subscribers.
-
subscribe(
Subscription subscription) → void - Adds a subscription to receive notifications when events occur.
-
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribe(
Subscription subscription) → void - Removes an existing subscription.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited