DesignSpringDrive extension
Runs an AnimationController on a spring instead of a duration.
Methods
-
springTo(
double target, SpringDescription spring, {double? velocity, Tolerance tolerance = designSpringTolerance}) → TickerFuture -
Available on AnimationController, provided by the DesignSpringDrive extension
Drives the controller from its current value totargetonspring(animateWith(SpringSimulation)), settling attolerance(designSpringTolerance) exactly ontarget.velocitydefaults to the controller's own, so a spring retargeted mid-flight keeps its momentum.