Message class
Represents a message that can be published in a topic.
Constructors
Properties
- creation → int
-
Creation time
final
- data → dynamic
-
Message data.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- resp → String?
-
Response topic (Optional).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sticky → bool
-
Sticky messages remain in memory and are delivered when a subscriber
subscribes to the topic to which the sticky message was previously delivered.
You can check if a message is recent or old by looking at the state of this flag.
final
- to → String
-
Target topic.
final
Methods
-
answer(
dynamic data) → void - create and publish a Message in response to this one. This message must have a non-null resp field. If passing an Exception/Error use StackException to keep the StackTrace on call
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited