extentInside property

double get extentInside

The quantity of content conceptually "inside" the viewport in the scrollable (including empty space if the total amount of content is less than the viewportDimension).

The value is typically the extent of the viewport (viewportDimension) when outOfRange is false. It can be less when overscrolling.

The value is always non-negative, and less than or equal to viewportDimension.

Implementation

double get extentInside {
  assert(minScrollExtent <= maxScrollExtent);
  return viewportDimension
    // "above" overscroll value
    - clampDouble(minScrollExtent - pixels, 0, viewportDimension)
    // "below" overscroll value
    - clampDouble(pixels - maxScrollExtent, 0, viewportDimension);
}