page property
The current page displayed in the PageView.
Implementation
@override
double? get page {
assert(
!hasPixels || hasContentDimensions,
'Page value is only available after content dimensions are established.',
);
return !hasPixels || !hasContentDimensions
? null
: _cachedPage ??
getPageFromPixels(
clampDouble(pixels, minScrollExtent, maxScrollExtent),
viewportDimension);
}