Machine class

The state machine itself.

Constructors

Machine()
Constructor of a state machine.

Properties

current State?
Returns the current state of this machine.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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