TransitionHandlerWhenBuilder<D, C> class
Provides methods for defining conditional transition behavior for a state carrying state data
of type D, and a context value of type C.
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(TransitionHandlerBuilder< D, C> builder), {String? label}) → void -
Adds a transition behavior that will take place if no other conditions evaluate to
true. -
toString(
) → String -
A string representation of this object.
inherited
-
when(
FutureOr< bool> condition(TransitionHandlerContext<D, C> ctx), void buildTrueHandler(TransitionHandlerBuilder<D, C> builder), {String? label}) → TransitionHandlerWhenBuilder<D, C> - Adds a conditional transition behavior, in the same manner as TransitionHandlerBuilder.when.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited