InitialMachine class
Describes the initial state machine of a StateTreeBuilder.machineState.
- 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
createfunction as the nested state machine.factory -
InitialMachine.fromTree(FutureOr<
StateTreeBuilder> create(TransitionContext transCtx), {String? label, String? logName}) -
Constructs an InitialMachine that will create and start a nested state machine using
the StateTreeBuilder produced by the
createfunction.factory
Properties
- disposeMachineOnExit → bool
-
Returns
trueif the nested state machine should be disposed when the StateTreeBuilder.machineState is exited.final - forwardMessages → bool
-
Returns
trueif 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