minLength property Null safety

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.


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


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

  _minLength = value;