MachineBlueprint<S, E> class
The root entry point for a state machine definition.
- Available extensions
Constructors
-
MachineBlueprint({String? name, required BasicBlueprint<
S, E> root}) - Creates a new MachineBlueprint with the specified name and root state.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
The optional name of the state machine.
final
-
root
→ BasicBlueprint<
S, E> -
The root state definition of the machine.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compile(
{void onTerminated()?, MachineObserver< S, E> ? observer}) → (Machine<S, E> ?, List<ValidationError> ) - Compiles the blueprint into a runnable Machine.
-
copyWith(
{({String? to})? name, BasicBlueprint< S, E> ? root}) → MachineBlueprint<S, E> -
Available on MachineBlueprint<
Creates a copy of this MachineBlueprint with the specified fields replaced.S, E> , provided by the MachineBlueprintX extension -
findState(
S id) → BasicBlueprint< S, E> ? -
Available on MachineBlueprint<
Recursively searches for a state with the givenS, E> , provided by the MachineBlueprintX extensionidin this blueprint tree. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replaceState(
S id, BasicBlueprint< S, E> transform(BasicBlueprint<S, E> found)) → MachineBlueprint<S, E> -
Available on MachineBlueprint<
Recursively searches for a state with the givenS, E> , provided by the MachineBlueprintX extensionidand replaces it using thetransformfunction. -
toPlantUml(
{String? direction, List< String> skinparams = const [], ParallelSeparator parallelSeparator = ParallelSeparator.horizontal}) → String -
Available on MachineBlueprint<
Converts this blueprint into a PlantUML string representation.S, E> , provided by the PlantUmlExtension extension -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited