OverscrollNotification constructor

OverscrollNotification({
  1. required ScrollMetrics metrics,
  2. required BuildContext context,
  3. DragUpdateDetails? dragDetails,
  4. required double overscroll,
  5. double velocity = 0.0,
})

Creates a notification that a Scrollable widget has changed its scroll position outside of its scroll bounds.

Implementation

OverscrollNotification({
  required super.metrics,
  required BuildContext super.context,
  this.dragDetails,
  required this.overscroll,
  this.velocity = 0.0,
}) : assert(overscroll.isFinite),
     assert(overscroll != 0.0);