StretchingOverscrollIndicatorModifier constructor

const StretchingOverscrollIndicatorModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required AxisDirection axisDirection,
  5. Clip clipBehavior = Clip.hardEdge,
  6. ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
})

Creates a visual indication that a scroll view has overscrolled by applying a stretch transformation to the content.

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 axisDirection and notificationPredicate arguments must not be null.

Implementation

const StretchingOverscrollIndicatorModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.axisDirection,
  this.clipBehavior = Clip.hardEdge,
  this.notificationPredicate = defaultScrollNotificationPredicate,
});