PageMetrics class Null safety
Metrics for a PageView.
The metrics are available on ScrollNotifications generated from PageViews.
- Inheritance
-
- Object
- FixedScrollMetrics
- PageMetrics
Constructors
- PageMetrics({required double? minScrollExtent, required double? maxScrollExtent, required double? pixels, required double? viewportDimension, required AxisDirection axisDirection, required double viewportFraction})
- Creates an immutable snapshot of values associated with a PageView.
Properties
- atEdge → bool
-
Whether the pixels value is exactly at the minScrollExtent or the
maxScrollExtent.
read-onlyinherited
- axis → Axis
-
The axis in which the scroll view scrolls.
read-onlyinherited
- axisDirection → AxisDirection
-
The direction in which the scroll view scrolls.
finalinherited
- extentAfter → double
-
The quantity of content conceptually "below" the viewport in the scrollable.
This is the content below the content described by extentInside.
read-onlyinherited
- extentBefore → double
-
The quantity of content conceptually "above" the viewport in the scrollable.
This is the content above the content described by extentInside.
read-onlyinherited
- extentInside → double
-
The quantity of content conceptually "inside" the viewport in the scrollable.
read-onlyinherited
- hasContentDimensions → bool
-
Whether the minScrollExtent and the maxScrollExtent properties are available.
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- hasPixels → bool
-
Whether the pixels property is available.
read-onlyinherited
- hasViewportDimension → bool
-
Whether the viewportDimension property is available.
read-onlyinherited
- maxScrollExtent → double
-
The maximum in-range value for pixels.
read-onlyinherited
- minScrollExtent → double
-
The minimum in-range value for pixels.
read-onlyinherited
- outOfRange → bool
-
Whether the pixels value is outside the minScrollExtent and
maxScrollExtent.
read-onlyinherited
- page → double?
-
The current page displayed in the PageView.
read-only
- pixels → double
-
The current scroll position, in logical pixels along the axisDirection.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- viewportDimension → double
-
The extent of the viewport along the axisDirection.
read-onlyinherited
- viewportFraction → double
-
The fraction of the viewport that each page occupies.
final
Methods
-
copyWith(
{double? minScrollExtent, double? maxScrollExtent, double? pixels, double? viewportDimension, AxisDirection? axisDirection, double? viewportFraction}) → PageMetrics -
Creates a ScrollMetrics that has the same properties as this object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited