page property

double page

The current page displayed in the PageView.

Implementation

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