Invalid<STATE extends Object, ACTION extends Object> class final

A class representing the state transition pattern when the transition is invalid. It has the same state before the transition and the action as Transition, but it does not have the state after the transition.

Inheritance
Annotations
  • @immutable

Constructors

Invalid(STATE fromState, ACTION action)
Creates a new invalid transition
const

Properties

action → ACTION
The action when the transition is made
finalinherited
fromState → STATE
The state before the transition
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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