animateTo method
Implementation
void animateTo(double value, {Duration? duration, Curve? curve}) {
_tween.begin = relFraction;
_tween.end = maxFraction == 0 ? 0.0 : value / maxFraction;
_curve = curve ?? widget.config.curve;
_animation?.dispose();
_animation = AnimationController(
vsync: this,
duration: duration ?? widget.config.duration,
);
_animation!.addListener(() => setState(() {}));
_animation!.forward();
}