Transition<T> class abstract

Base class for all transitions.

Implementers

Constructors

Transition({Iterable<String> targets = const [], String? event, String? description, Condition<T>? condition, Duration? after, dynamic type = TransitionType.externalTransition, Action<T>? action})
Create the appropriate subclass based on the parameters.
factory

Properties

action Action<T>?
An action to take when the transition is triggered.
final
condition Condition<T>?
If true, this transition should be triggered.
final
description String
A human-readable description. If none supplied, returns a default description.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source State<T>?
Reference back to the containing state.
latefinal
targets Iterable<String>
IDs of all of the target states to activate.
final
targetStates Iterable<State<T>>
The actual target states.
latefinal
type TransitionType
Is this triggered by internal or external events?
final

Methods

matches({String? anEvent, Duration? elapsedTime, T? context, dynamic ignoreContext = false}) bool
See subclasses
meetsCondition(T? context) bool
Tests condition
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveStates(State<T> parent, Map<String, State<T>> stateMap) → void
Populates targetStates from targets.
toString() String
A string representation of this object.
override

Operators

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