extentInside property

double extentInside

The quantity of content conceptually "inside" the viewport in the scrollable.

The value is typically the height of the viewport when outOfRange is false. It could be less if there is less content visible than the size of the viewport, such as 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
    - (minScrollExtent - pixels).clamp(0, viewportDimension)
    // "below" overscroll value
    - (pixels - maxScrollExtent).clamp(0, viewportDimension);
}