State<StateIdentifier> class
Simple class to initialize each state of the FSM.
Constructors
-
State(StateIdentifier identifier, {required Map<
Logic, StateIdentifier> events, required List<Conditional> actions, StateIdentifier? defaultNextState, ConditionalType conditionalType = ConditionalType.unique}) - 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
- conditionalType → ConditionalType
-
Used to control how different events should be prioritized and matched.
final
- defaultNextState → StateIdentifier
-
The next state to transition to if non of the events hit.
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.
no setterinherited
- identifier → StateIdentifier
-
Identifier or name of the state.
final
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited