animateScroll method
Animates the scroll offset by offset pixels (negative scrolls back).
Implementation
Future<void> animateScroll({
required double offset,
required Duration duration,
Curve curve = Curves.linear,
}) {
assert(isAttached, "ScrollOffsetController is not attached.");
return _client!._animateScroll(offset, duration, curve);
}