OverscrollNotification constructor Null safety

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

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

Implementation

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