FixedScrollMetrics class Null safety

An immutable snapshot of values associated with a Scrollable viewport.

For details, see ScrollMetrics, which defines this object's interfaces.

Mixed in types
Implementers

Constructors

FixedScrollMetrics({required double? minScrollExtent, required double? maxScrollExtent, required double? pixels, required double? viewportDimension, required AxisDirection axisDirection})
Creates an immutable snapshot of values associated with a Scrollable viewport.

Properties

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
The direction in which the scroll view scrolls.
final
extentAfter double
The quantity of content conceptually "below" 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 viewport in the scrollable. This is the content above the content described by extentInside.
read-only, inherited
extentInside double
The quantity of content conceptually "inside" the viewport in the scrollable. [...]
read-only, inherited
hasContentDimensions bool
Whether the minScrollExtent and the maxScrollExtent properties are available.
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
hasPixels bool
Whether the pixels property is available.
read-only, override
hasViewportDimension bool
Whether the viewportDimension property is available.
read-only, override
maxScrollExtent double
The maximum in-range value for pixels. [...]
read-only, override
minScrollExtent double
The minimum in-range value for pixels. [...]
read-only, override
outOfRange bool
Whether the pixels value is outside the minScrollExtent and maxScrollExtent.
read-only, inherited
pixels double
The current scroll position, in logical pixels along the axisDirection.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
viewportDimension double
The extent of the viewport along the axisDirection.
read-only, override

Methods

copyWith({double? minScrollExtent, double? maxScrollExtent, double? pixels, double? viewportDimension, AxisDirection? axisDirection}) 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
A string representation of this object. [...]
override

Operators

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