AnimationControllerExtensions extension

Extensions for AnimationController operations and utilities.

on

Properties

isCompleted → bool

Available on AnimationController, provided by the AnimationControllerExtensions extension

Returns true if the controller is completed.
no setter
isDismissed → bool

Available on AnimationController, provided by the AnimationControllerExtensions extension

Returns true if the controller is dismissed.
no setter
isNotAnimating → bool

Available on AnimationController, provided by the AnimationControllerExtensions extension

Returns true if the controller is not animating.
no setter
percentage → double

Available on AnimationController, provided by the AnimationControllerExtensions extension

Gets the current animation value as a percentage.
no setter
percentageInt → int

Available on AnimationController, provided by the AnimationControllerExtensions extension

Gets the current animation value as an integer percentage.
no setter

Methods

addAutoRemoveListener(VoidCallback listener) → void

Available on AnimationController, provided by the AnimationControllerExtensions extension

Adds a listener that is automatically removed when the controller is disposed.
addAutoRemoveStatusListener(void listener(AnimationStatus status)) → void

Available on AnimationController, provided by the AnimationControllerExtensions extension

Adds a status listener that is automatically removed when the controller is disposed.
forwardThenReset() → Future<void>

Available on AnimationController, provided by the AnimationControllerExtensions extension

Animates forward and then resets.
forwardThenReverse() → Future<void>

Available on AnimationController, provided by the AnimationControllerExtensions extension

Animates forward and then reverses.
forwardWithDelay(Duration delay) → Future<void>

Available on AnimationController, provided by the AnimationControllerExtensions extension

Animates with a delay before starting.
repeatAnimation({int count = 1}) → Future<void>

Available on AnimationController, provided by the AnimationControllerExtensions extension

Repeats the animation a specified number of times.
resetAndForward() → void

Available on AnimationController, provided by the AnimationControllerExtensions extension

Resets and forwards the animation.
resetAndReverse() → void

Available on AnimationController, provided by the AnimationControllerExtensions extension

Resets and reverses the animation.
reverseThenReset() → Future<void>

Available on AnimationController, provided by the AnimationControllerExtensions extension

Animates reverse and then resets.
reverseWithDelay(Duration delay) → Future<void>

Available on AnimationController, provided by the AnimationControllerExtensions extension

Animates reverse with a delay before starting.
setValue(double value) → void

Available on AnimationController, provided by the AnimationControllerExtensions extension

Sets the animation value directly.
toggle() → void

Available on AnimationController, provided by the AnimationControllerExtensions extension

Toggles the animation (forward if dismissed, reverse if completed).