GlowingOverscrollIndicator constructor Null safety
- {Key? key,
- bool showLeading = true,
- bool showTrailing = true,
- required AxisDirection axisDirection,
- required Color color,
- ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
- 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);