animateWith method
Drives the animation according to the given simulation.
The values from the simulation are clamped to the lowerBound
and
upperBound
. To avoid this, consider creating the AnimationController
using the new AnimationController.unbounded
constructor.
Returns a TickerFuture that completes when the animation is complete.
The most recently returned TickerFuture, if any, is marked as having been canceled, meaning the future never completes and its TickerFuture.orCancel derivative future completes with a TickerCanceled error.
The status is always AnimationStatus.forward for the entire duration of the simulation.
Implementation
TickerFuture animateWith(Simulation simulation) {
return _controller.animateWith(simulation);
}