Valid<STATE, EVENT, SIDE_EFFECT> class

A transition that moved the state machine into a new state.

Inheritance

Constructors

Valid(STATE fromState, EVENT event, STATE toState, SIDE_EFFECT? sideEffect)
Creates a valid transition from fromState to toState.

Properties

event → EVENT
The event that triggered the transition.
final
fromState → STATE
The state the machine was in before the transition.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sideEffect → SIDE_EFFECT?
The optional side effect declared for this transition.
final
toState → STATE
The state the machine is in after the transition.
final

Methods

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