InitialMachine class
A callable class that can produce the initial nested nested state machine for a machine state, when the machine state is entered.
- Implemented types
Constructors
-
InitialMachine.fromMachine(FutureOr<
TreeStateMachine> create(TransitionContext), {bool disposeOnExit = true, bool forwardMessages = true, String? label}) -
Constructs an InitialMachine that will use the state machine produced by
the
create
function as the nested state machine.factory -
InitialMachine.fromStateTree(FutureOr<
StateTreeBuildProvider> create(TransitionContext transCtx), {String? label, String? logSuffix}) -
Constructs an InitialMachine that will create and start a nested state
machine using the StateTreeBuildProvider produced by the
create
function.factory
Properties
- disposeMachineOnExit → bool
-
Returns
true
if the nested state machine should be disposed when the machine state is exited.final - forwardMessages → bool
-
Returns
true
if messages should be forwarded from a state machine to the nested state machine.final - hashCode → int
-
The hash code for this object.
no setterinherited
- label → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
TransitionContext transCtx) → FutureOr< TreeStateMachine> -
Creates a nested TreeStateMachine.
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