StateBuilder<S extends State> class
State builder.
Instance of this class is passed to GraphBuilder.state
method.
- Implementers
Constructors
-
StateBuilder(StateDefinition<
State> parent, StateDefinition<S> _stateDefinition)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- pageBreak → void
-
Places a page break into the export file rendering all nested
states on a new page.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
) → StateDefinition< State> -
coregion<
CO extends State> (BuildCoRegion< CO> buildState) → void -
Adds a coregion State definition as per the UML2
specification for
orthogonal regions
. -
initialState<
I extends State> () → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
on<
E extends Event, TOSTATE extends State> ({GuardCondition< E> condition = noopGuardCondition, SideEffect<E> ? sideEffect, String? conditionLabel, String? sideEffectLabel}) → void -
Statically declares a transition that will occur when Event of type
E
is sent to machine via StateMachine.applyEvent method. -
onEnter(
OnEnter onEnter, {String? label}) → void - Sets callback that will be called right after machine enters this State.
-
onExit(
OnExit onExit, {String? label}) → void - Sets callback that will be called right before machine exits this State.
-
onFork<
E extends Event> (BuildFork< E> buildFork, {GuardCondition<E> condition = noopGuardCondition, SideEffect<E> ? sideEffect, String? conditionLabel, String? sideEffectLabel}) → void - Used to enter a co-region by targeting the set of states within the coregion to transition to.
-
onJoin<
E extends Event, TOSTATE extends State> ({GuardCondition< E> condition = noopGuardCondition, SideEffect<Event> ? sideEffect}) → void - Adds an event to the set of events that must be triggered to leave the ownercoregion. Every onJoin in a coregion must target the same external state.
-
state<
C extends State> (BuildState< C> buildState) → void -
Adds a nested State definition as per the UML2
specification for
hierarchically nested states
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited