AppNotifications class

Constructors

AppNotifications.hub()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
services List<Service<State, RepositoryProvider>>
no setter

Methods

messageHandled(Message message) → void
Once a message is handled, it should be removed from the _queuedMessageHashes set so that if the same message is received again, it can be added to the stream. This avoids notifying on duplicate messages.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register<T extends Service<State, RepositoryProvider>>(T service) → void
Register a service with the hub. If a service of the same type is already registered, it will be replaced.
subscribeToMessageStreams(StreamController<Message> messageStream) List<StreamSubscription<State>>
Subscribe to the message streams of all the services registered with the hub and adds the messages to a single messageStream.
toString() String
A string representation of this object.
inherited

Operators

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