RepeatMode enum
Defines how a repeated animation should behave when it reaches completion.
Used by RepeatedAnimationBuilder to control animation looping behavior. Each mode provides different patterns of repetition suitable for various visual effects and UI animations.
Values
- repeat → const RepeatMode
-
Restarts the animation from the beginning each time it completes.
The animation goes from start → end, then immediately jumps back to start and repeats. This creates a consistent forward motion with instant resets.
- reverse → const RepeatMode
-
Plays the animation in reverse each cycle.
The animation goes from end → start repeatedly. This is useful when you want the reverse of the normal animation behavior as the primary motion.
- pingPong → const RepeatMode
-
Alternates between forward and reverse directions.
The animation goes start → end → start → end, creating a smooth back-and-forth motion without any jarring transitions. Also known as "yoyo" animation.
- pingPongReverse → const RepeatMode
-
Same as pingPong, but starts with reverse direction.
The animation goes end → start → end → start, beginning with the reverse motion first. Useful when the initial state should be the "end" value.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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<
RepeatMode> - A constant List of the values in this enum, in order of their declaration.