snapToExtent method

Future<void>? snapToExtent(
  1. double extent, {
  2. Duration? duration,
  3. bool clamp = true,
})

Animates the sheet to the extent.

The extent will be clamped to the minimum and maximum extent. If the scrolling child is not at the top, it will scroll to the top first and then animate to the specified extent.

Implementation

Future<void>? snapToExtent(double extent, {Duration? duration, bool clamp = true}) =>
    _snapToExtent?.call(extent, duration: duration, clamp: clamp);