ScrollUpdateNotification constructor Null safety

ScrollUpdateNotification(
  1. {required ScrollMetrics metrics,
  2. required BuildContext context,
  3. DragUpdateDetails? dragDetails,
  4. double? scrollDelta,
  5. int? depth}
)

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

Implementation

ScrollUpdateNotification({
  required super.metrics,
  required BuildContext super.context,
  this.dragDetails,
  this.scrollDelta,
  int? depth,
}) {
  if (depth != null) {
    _depth = depth;
  }
}