snapToExtent method
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);