minLength property

double minLength

The preferred smallest size the scrollbar thumb can shrink to when the total scrollable extent is large, the current visible viewport is small, and the viewport is not overscrolled.

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

Mustn't be null and the value has to be greater or equal to minOverscrollLength, which in turn is >= 0. Defaults to 18.0.

Implementation

double get minLength => _minLength;
void minLength=(double value)

Implementation

set minLength(double value) {
  if (minLength == value) {
    return;
  }

  _minLength = value;
  notifyListeners();
}