GlowingOverscrollIndicator constructor Null safety

const GlowingOverscrollIndicator(
  1. {Key? key,
  2. bool showLeading = true,
  3. bool showTrailing = true,
  4. required AxisDirection axisDirection,
  5. required Color color,
  6. ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
  7. Widget? child}
)

Creates a visual indication that a scroll view has overscrolled.

In order for this widget to display an overscroll indication, the child widget must contain a widget that generates a ScrollNotification, such as a ListView or a GridView.

The showLeading, showTrailing, axisDirection, color, and notificationPredicate arguments must not be null.

Implementation

const GlowingOverscrollIndicator({
  super.key,
  this.showLeading = true,
  this.showTrailing = true,
  required this.axisDirection,
  required this.color,
  this.notificationPredicate = defaultScrollNotificationPredicate,
  this.child,
}) : assert(showLeading != null),
     assert(showTrailing != null),
     assert(axisDirection != null),
     assert(color != null),
     assert(notificationPredicate != null);