StateNode<S extends AutomataState> class
abstract
Represents a Node for a particular AutomataState in our StateMachine.
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
-
always<
Target extends AutomataState> ({GuardCondition< NullEvent> ? condition, List<Action< ? actions}) → voidNullEvent> > -
Attach a Eventless
TransitionDefinition
to allow to transition from this StateNode to a given StateNode for any AutomataEvent as long as the conditions are met. -
initial<
I extends AutomataState> () → void - Defines the initial AutomataState. Used in StateNode of type StateNodeType.compound.
-
invoke<
Result> ({InvokeBuilder? builder}) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
on<
E extends AutomataEvent, Target extends AutomataState> ({TransitionType type, GuardCondition< E> ? condition, List<Action< ? actions}) → voidE> > -
Attach a
TransitionDefinition
to allow to transition from this this StateNode to a given StateNode for a specific AutomataEvent. -
onDone<
E extends AutomataEvent> ({required List< Action< actions}) → voidE> > - Sets callback that will bne called when:
-
onEntry(
OnEntryAction onEntry) → void - Sets callback that will be called right after machine entrys this State.
-
onExit(
OnExitAction onExit) → void - Sets callback that will be called right before machine exits this State.
-
state<
I extends AutomataState> ({StateBuilder< AutomataState> ? builder, StateNodeType? type}) → void - Attach a StateNode of a given AutomataState.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited