animateScroll method

Future<void> animateScroll({
  1. required double offset,
  2. required Duration duration,
  3. Curve curve = Curves.linear,
})

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);
}