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<S, E>, provided by the MachineBlueprintX extension

Creates a copy of this MachineBlueprint with the specified fields replaced.
findState(S id) BasicBlueprint<S, E>?

Available on MachineBlueprint<S, E>, provided by the MachineBlueprintX extension

Recursively searches for a state with the given id in 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<S, E>, provided by the MachineBlueprintX extension

Recursively searches for a state with the given id and replaces it using the transform function.
toPlantUml({String? direction, List<String> skinparams = const [], ParallelSeparator parallelSeparator = ParallelSeparator.horizontal}) String

Available on MachineBlueprint<S, E>, provided by the PlantUmlExtension extension

Converts this blueprint into a PlantUML string representation.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited