MessageSinkRegister class
Allows communication between Listeners and Senders of the same type, without the need of them knowing about each other.
Constructors
- MessageSinkRegister()
-
A singleton constructor.
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
Methods
-
clear(
) → void -
getSinksOfType<
Message> () → List< StreamSink> -
Returns all sinks in MessageSinkRegister's
_messageSinks
of typeMessage
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendToSinksOfType<
Message> (Message message, {bool oneOff = false}) → void -
Adds
message
to all sinks in MessageSinkRegister's_messageSinks
of typeMessage
and updates_messageBuffers
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- log ↔ LoggerCallback?
-
getter/setter pair
- loggingEnabled ↔ bool
-
getter/setter pair