MessageHandlerWhenBuilder<M, D, C> class

Provides methods for defining conditional message handling behavior for messages of type M, for a state carrying state data type D, and a context value of type C.

Constructors

MessageHandlerWhenBuilder(MessageHandlerBuilder<M, D, C> makeBuilder(), List<MessageConditionDescriptor<M, D, C>> conditions)

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
otherwise(void buildOtherwise(MessageHandlerBuilder<M, D, C> builder), {String? label}) → void
inherited
toString() String
A string representation of this object.
inherited
when(FutureOr<bool> condition(MessageHandlerContext<M, D, C>), void buildTrue(MessageHandlerBuilder<M, D, C> builder), {String? label}) MessageHandlerWhenBuilder<M, D, C>
Describes message handling behavior that may be run conditionally.

Operators

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