State<StateIdentifier> class Null safety

Simple class to initialize each state of the FSM.

Constructors

State(StateIdentifier identifier, {required Map<Logic, StateIdentifier> events, required List<Conditional> actions})
Represents a state named identifier with a definition of events and actions associated with that state.

Properties

actions List<Conditional>
Actions to perform while the FSM is in this state.
final
events Map<Logic, StateIdentifier>
A map of the possible conditions that might be true and the next state that the FSM needs to transition to in each of those cases.
final
hashCode int
The hash code for this object.
read-onlyinherited
identifier → StateIdentifier
Identifier or name of the state.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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