MachineState class

A machine state in a state tree.

A machine state has an accompanying nested state machine. When the state is entered, it remains active as long as the nested state machine has not completed (that is, until it reaches a final state, or is disposed).

Upon completion, the onMachineDone callback is called to determine the next state to transition to.

Implemented types

Constructors

MachineState.new(MachineStateKey key, InitialMachine initialMachine, {required MachineDoneHandler onMachineDone, bool isMachineDone(Transition)?, MachineDisposedHandler? onMachineDisposed})
Constructs a machine state, identified by key.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

nodeInfo(TreeNodeInfo parent) TreeNodeInfo
Constructs a TreeNodeInfo representing the tree state, with the specified parent node.
override
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