minOverscrollLength property Null safety

double minOverscrollLength

The preferred smallest size the scrollbar thumb can shrink to when viewport is overscrolled.

When overscrolling, the size of the scrollbar may shrink to a smaller size than minOverscrollLength to fit in the available paint area. E.g., when minOverscrollLength is double.infinity, it will not be respected if the ScrollMetrics.viewportDimension and mainAxisMargin are finite.

The value is less than or equal to minLength and greater than or equal to 0. When null, it will default to the value of minLength.


double get minOverscrollLength => _minOverscrollLength;
void minOverscrollLength=(double value)


set minOverscrollLength(double value) {
  assert(value != null);
  if (minOverscrollLength == value) {

  _minOverscrollLength = value;