StateMachine<State, Input> class

Constructors

StateMachine({required List<State> states, required bool isSuccessState(State), required Transition<State, Input> transition})

Properties

hashCode int
The hash code for this object.
no setterinherited
isSuccessState bool Function(State)
list of states considered to be successes
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateIndexMap Map<State, int>?
getter/setter pair
states List<State>
list of states for this machine. First state is starting state.
final
transition Transition<State, Input>
the transitions that define how this automaton works
final

Methods

createState() StateMachineState<State, Input>
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