moveTo method
override
Calls jumpTo if duration is null or Duration.zero, otherwise animateTo is called.
If clamp
is true (the default) then to
is adjusted to prevent over or
underscroll.
If animateTo is called then curve
defaults to Curves.ease.
Implementation
@override
Future<void> moveTo(
double to, {
Duration? duration,
Curve? curve,
bool? clamp = true,
}) {
assert(clamp != null);
if (clamp!) {
to = clampDouble(to, minScrollExtent, maxScrollExtent);
}
return super.moveTo(to, duration: duration, curve: curve);
}