AnimatedTextController class

A controller for managing the state of an animated text sequence.

This controller exposes methods to play, pause, and reset the animation. The AnimatedTextState enum represents the various states the animation can be in. By calling play(), pause(), or reset(), you can transition between these states and the animated widget will react accordingly.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state AnimatedTextState
Returns the current state of the animation.
getter/setter pair
stateNotifier ValueNotifier<AnimatedTextState>
A ValueNotifier that holds the current state of the animation. Listeners can be attached to react when the state changes.
final

Methods

dispose() → void
Disposes of the ValueNotifier. This should be called when the AnimatedTextController is no longer needed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pauses the animation. If the animation is currently in the pausingBetweenAnimations state, it moves to pausingBetweenAnimationsWithUserPauseRequested, indicating that once the internal pause finishes, the animation should remain paused. Otherwise, it transitions directly into the userPaused state.
play() → void
Transitions the animation into the playing state, unless the controller is currently in the pausingBetweenAnimationsWithUserPauseRequested state, in which case it returns to the pausingBetweenAnimations state.
reset() → void
Resets the animation to its initial state by setting the state to reset. This typically means the animated text should return to the start of its animation in this cycle and be ready to begin again.
toString() String
A string representation of this object.
inherited

Operators

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