scrollTo method

Future<void>? scrollTo(
  1. double offset, {
  2. Duration? duration,
  3. Curve? curve,
})

Animates the scrolling child to a specified offset.

If the sheet is not fully expanded it will expand first and then animate to the given offset.

Implementation

Future<void>? scrollTo(double offset, {Duration? duration, Curve? curve}) =>
    _scrollTo?.call(offset, duration: duration, curve: curve);