Transition class abstract

Represents a transition in a state based view workflow.

The transition connects the two State's identified by their IDs, allowing a unidirectional traversial from source to target state. To simplify the definition of transitions, it is possible to summarize multiple transitions to one target. This type cannot be instantiated, instead the sub types ActionTransition and TriggerTransition should be used.

Implementers

Constructors

Transition({required String id, required Set<String> sourceIds, required String targetId})
Creates an instance of Transition.
const
Transition.singleSource({required String id, required String sourceId, required String targetId})
Creates an instance of Transition with a single source.

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
An unique identifier.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceIds Set<String>
The IDs of all source states.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
targetId String
The ID of the target state.
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