SequenceMachine class

An internal utility for the AnimatedSequence widget. It manages the state of a sequence and handles transitions and configurations.

Constructors

SequenceMachine(List<SequenceEntry> sequence)
Builds a new instance of SequenceMachine with the provided sequence. If tags are assigned to any item inside the sequence they must be unique.

Properties

currentItem SequenceItem
The current item the sequence is processing.
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
sequence List<SequenceEntry>
The sequence to execute. This field will be read once and then converted to a list of sequential instructions similar to assembly instructions.
final

Methods

hasTag(String tag) bool
Returns whether the sequence list has an item with tag tag.
jumpTo(String tag) → void
Jumps to the specific item with the tag tag. If the tag is not found inside the sequence list then this call will be ignored. To be sure that the tag exists use hasTag.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
skip() → void
Forcefully skip ahead to the next sequence item, discarding eventual left repetitions.
tick() bool
Tick the machine.
toString() String
A string representation of this object.
inherited

Operators

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