animateToTarget method
Drives the animation from its current value to target.
Reference on AnimationController.animateTo and AnimationController.animateBack
Implementation
TickerFuture? animateToTarget(double target, {Duration? duration}) {
if (target > (_animationController?.value ?? 0)) {
return _animationController?.animateTo(target, duration: duration);
} else {
return _animationController?.animateBack(target, duration: duration);
}
}