MessageHandlerContext<M, D, C> class
Provides access to the context for a message handler, including the MessageContext, the
message of type M being processed, the state data of type D, and a context value of type
C.
Constructors
- MessageHandlerContext(MessageContext messageContext, M message, D data, C context)
Properties
- context → C
-
An extra contextual value for the handler, whose value depends on the builder method used to
define the message handler.
final
- data → D
-
The state data for the state that is handling the message. This may be of
voidtype if the state has no state data.final - hashCode → int
-
The hash code for this object.
no setterinherited
- message → M
-
The message that is being processed.
final
- messageContext → MessageContext
-
The MessageContext that describes the message being processed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited