Metrics for a PageView.

The metrics are available on ScrollNotifications generated from PageViews.

Inheritance

Constructors

PageMetrics({ScrollMetrics parent, double page })
Creates page metrics that add the given information to the parent metrics.

Properties

page double
The current page displayed in the PageView.
final
atEdge bool
Whether the pixels value is exactly at the minScrollExtent or the maxScrollExtent.
read-only, inherited
axis Axis
The axis in which the scroll view scrolls.
read-only, inherited
axisDirection AxisDirection
final, inherited
extentAfter double
The quantity of content conceptually "below" the currently visible content of the viewport in the scrollable. This is the content below the content described by extentInside.
read-only, inherited
extentBefore double
The quantity of content conceptually "above" the currently visible content of the viewport in the scrollable. This is the content above the content described by extentInside.
read-only, inherited
extentInside double
The quantity of visible content. [...]
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
maxScrollExtent double
final, inherited
minScrollExtent double
final, inherited
outOfRange bool
Whether the pixels value is outside the minScrollExtent and maxScrollExtent.
read-only, inherited
pixels double
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
viewportDimension double
final, inherited

Methods

cloneMetrics() ScrollMetrics
Creates a ScrollMetrics that has the same properties as this object. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(other) bool
The equality operator. [...]
inherited