StateDefinitionBuilder<S extends STATE, STATE, EVENT, SIDE_EFFECT> class
Defines the transitions and listeners of the state S.
Constructors
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
-
build(
) → _State< STATE, EVENT, SIDE_EFFECT> - Returns the collected state definition. Used by GraphBuilder.state.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
on<
E extends EVENT> (CreateTransitionTo< S, STATE, E, EVENT, SIDE_EFFECT> createTransitionTo) → void -
Defines how the state reacts to events of type
E. -
onEnter(
void doOnEnter(S, EVENT)) → void -
Registers
doOnEnter, called whenever the machine enters this state. -
onExit(
void doOnExit(S, EVENT)) → void -
Registers
doOnExit, called whenever the machine leaves this state. -
toString(
) → String -
A string representation of this object.
inherited
-
transitionTo(
STATE toState, [SIDE_EFFECT? sideEffect]) → TransitionTo< STATE, SIDE_EFFECT> -
Creates a transition to
toStatewith an optionalsideEffect.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited