DesignSpringDrive extension

Runs an AnimationController on a spring instead of a duration.

on

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 to target on spring (animateWith(SpringSimulation)), settling at tolerance (designSpringTolerance) exactly on target. velocity defaults to the controller's own, so a spring retargeted mid-flight keeps its momentum.