EventType enum

The event type passed to AnimationStateListener

Inheritance

Constructors

EventType()
const

Values

start → const EventType

Emitted when TrackEntry has been set as the current entry. EventType.end will occur when this entry will no longer be applied.

interrupt → const EventType

Emitted when another entry has replaced the current entry. This entry may continue being applied for mixing.

end → const EventType

Emitted when this entry will never be applied again. This only occurs if this entry has previously been set as the current entry (EventType.start was emitted).

complete → const EventType

Emitted every time the current entry's animation completes a loop. This may occur during mixing (after EventType.interrupted is emitted).

If TrackEntry.getMixingTo of the entry reported by the event is not null, the entry is mixing out (it is not the current entry).

Because this event is triggered at the end of AnimationState.apply, any animations set in response to the event won't be applied until the next time the AnimationState is applied.

dispose → const EventType

Emitted when this entry will be disposed. This may occur without the entry ever being set as the current entry.

References to the entry should not be kept after dispose is called, as it may be destroyed or reused.

event → const EventType

Invoked when the current entry's animation triggers an event. This may occur during mixing (after EventType.interrupt is emitted), see TrackEntry.getEventThreshold.

Because this event is triggered at the end of AnimationState.apply, any animations set in response to the event won't be applied until the next time the AnimationState is applied.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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

Constants

values → const List<EventType>
A constant List of the values in this enum, in order of their declaration.