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})
-
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