page property

double? page

The current page displayed in the PageView.

Implementation

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