TextEffectController class

External playback controller for AnimatedText.

Allows a separate widget or service to control animation playback (play, pause, stop, seek, repeat) independently of the widget lifecycle.

Use attach and detach to persist animation progress across widget mount/unmount cycles, enabling scroll persistence.

Constructors

TextEffectController()

Properties

animationController AnimationController?
The underlying AnimationController, if attached.
no setter
hashCode int
The hash code for this object.
no setterinherited
isCompleted bool
Whether the animation has reached 1.0.
no setter
isPlaying bool
Whether the animation is currently running.
no setter
progress double
Current animation progress from 0.0 to 1.0.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attach(TickerProvider vsync, Duration duration, VoidCallback listener) → void
Attaches this controller to a TickerProvider (usually a State).
detach() → void
Detaches from the TickerProvider, saving progress and state.
dispose() → void
Disposes the internal AnimationController and releases resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pauses playback at the current position.
play() → void
Starts or resumes forward playback.
repeat({int? count, bool reverse = false}) → void
Repeats the animation, optionally a specific count and reverse.
seekTo(double value) → void
Seeks to a specific value (0.0–1.0) without animation.
stop() → void
Stops playback and resets progress to 0.0.
toString() String
A string representation of this object.
inherited

Operators

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