GraphBuilder<STATE, EVENT, SIDE_EFFECT> class
Builds a Graph for an RxStateMachine.
Constructors
-
GraphBuilder([Graph<
STATE, EVENT, SIDE_EFFECT> ? _graph]) - Creates a builder, optionally pre-filled with an existing Graph.
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
-
build(
) → Graph< STATE, EVENT, SIDE_EFFECT> - Builds the Graph.
-
finishStates(
Set< STATE> states) → void - Sets the states in which the machine is considered finished.
-
initialState(
STATE state) → void - Sets the state the machine starts in. Required.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onTransition(
TransitionListener< STATE, EVENT, SIDE_EFFECT> listener) → void -
Sets
listenerthat will be called on each transition. -
state<
S extends STATE> (BuildState< S, STATE, EVENT, SIDE_EFFECT> buildState) → void - Adds state definition.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited