Machine class
The state machine itself.
Constructors
- Machine()
- Constructor of a state machine.
Properties
Methods
-
newStartState(
[String? name]) → State - Returns a new start state for this machine.
-
newState(
[String? name]) → State -
Returns a new state. The first call to this method defines the start state
of the machine. For debugging purposes an optional
name
can be provided. -
newStopState(
[String? name]) → State - Returns a new stop state for this machine.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
) → void - Sets the machine to its start state.
-
stop(
) → void - Sets the machine to its stop state.
-
toString(
) → String -
Returns a debug string of this state.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited