CurvedAnimationController<T> class

Inheritance
Implemented types

Constructors

CurvedAnimationController({T? begin, T? end, required Curve curve, Duration? duration, Curve? reverseCurve, Duration? reverseDuration, String? debugLabel, AnimationBehavior animationBehavior = AnimationBehavior.normal, required TickerProvider vsync})
CurvedAnimationController.sequence(List<SequenceItem> sequence, Duration? duration, {Curve curve = Curves.linear, Curve? reverseCurve = Curves.linear, Duration? reverseDuration, String? debugLabel, AnimationBehavior animationBehavior = AnimationBehavior.normal, required TickerProvider vsync})
CurvedAnimationController.tween(Tween<Object?> tween, Duration? duration, {Curve curve = Curves.linear, Curve? reverseCurve = Curves.linear, Duration? reverseDuration, String? debugLabel, AnimationBehavior animationBehavior = AnimationBehavior.normal, required TickerProvider vsync})
CurvedAnimationController.tweenSequence(TweenSequence sequence, Duration? duration, {Curve curve = Curves.linear, Curve? reverseCurve = Curves.linear, String? debugLabel, AnimationBehavior animationBehavior = AnimationBehavior.normal, Duration? reverseDuration, required TickerProvider vsync})

Properties

animation Animation?
Animation that hold value for this animation
no setter
animationBehavior AnimationBehavior
The behavior of the controller when AccessibilityFeatures.disableAnimations is true.
getter/setter pair
begin ↔ T?
The value this variable has at the beginning of the animation.
getter/setter pair
controller AnimationController
AnimationController for this animation
no setter
curve Curve
Curve for when the animation goes ahead
final
debugLabel String?
A label that is used in the toString output. Intended to aid with identifying animation controller instances in debug output.
final
duration Duration?
The length of time this animation should last.
final
end ↔ T?
The value this variable has at the end of the animation.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isAnimating bool
Whether this animation is currently animating in either the forward or reverse direction.
no setter
isCompleted bool
Whether this animation is stopped at the end.
no setter
isDismissed bool
Whether this animation is stopped at the beginning.
no setter
lastElapsedDuration Duration?
The amount of time that has passed between the time the animation started and the most recent tick of the animation.
no setter
progress double
The current progress of the animation.
getter/setter pair
reverseCurve Curve?
Curve when the animation goes back
final
reverseDuration Duration?
The length of time this animation should last when going in reverse.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status AnimationStatus
no setter
value → T?
The current value of the animation.
no setteroverride
velocity double
The rate of change of value per second.
no setter
vsync TickerProvider
final

Methods

addListener(Function listener) → void
Calls the listener every time the value of the animation changes.
override
addStatusListener(AnimationStatusListener listener) → void
Calls listener every time the status of the animation changes.
animateBack(double target, {Duration? duration, Curve curve = Curves.linear}) TickerFuture
Drives the animation from its current value to target.
animateTo(double target, {Duration? duration, Curve curve = Curves.linear}) TickerFuture
Drives the animation from its current value to target.
animateWith(Simulation simulation) TickerFuture
Drives the animation according to the given simulation.
dispose() → void
Release the resources used by this object. The object is no longer usable after this method is called.
fling({double velocity = 1.0, AnimationBehavior? animationBehavior}) TickerFuture
Drives the animation with a critically damped spring (within lowerBound and upperBound) and initial velocity.
forward({double? from}) TickerFuture
Starts running this animation forwards (towards the end).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Calls all the listeners.
removeListener(Function listener) → void
Stop calling the listener every time the value of the animation changes.
override
removeStatusListener(AnimationStatusListener listener) → void
Stops calling the listener every time the status of the animation changes.
repeat({double? min, double? max, bool reverse = false, Duration? period}) TickerFuture
Starts running this animation in the forward direction, and restarts the animation when it completes.
reset() → void
Sets the controller's value to begin, stopping the animation (if in progress), and resetting to its beginning point, or dismissed state.
reverse({double? from}) TickerFuture
Starts running this animation in reverse (towards the beginning).
start({double? from}) TickerFuture
alias of forward
stop({bool canceled = true}) → void
Stops running this animation.
toString() String
A string representation of this object.
inherited

Operators

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