FmvvmMessageService class

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.

Inheritance

Constructors

FmvvmMessageService()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clearAllSubscriptions() → void
Removes all existing subscriptions.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
publish(Message message) → void
Publishes a message to be received by any subscribers. [...]
override
subscribe(Subscription subscription) → void
Adds a subscription to receive notifications when events occur.
override
toString() String
A string representation of this object. [...]
inherited
unsubscribe(Subscription subscription) → void
Removes an existing subscription. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited