overExtent property

  1. @override
double overExtent
override

Keep the extent of the Scrollable out of bounds.

Implementation

@override
double get overExtent {
  /// When the content of the list is not full,
  /// the infinite scroll does not cross the bounds.
  if (infiniteOffset != null &&
      position.maxScrollExtent <= position.minScrollExtent) {
    return 0;
  }
  return super.overExtent;
}