page property

double? get page

The current page displayed in the PreloadPageView.

Implementation

double? get page {
  return math.max(0.0, pixels.clamp(minScrollExtent, maxScrollExtent)) /
      math.max(1.0, viewportDimension * viewportFraction);
}