SliverLayoutDimensions class
Relates the dimensions of the RenderSliver during layout.
Used by ListView.itemExtentBuilder and SliverVariedExtentList.itemExtentBuilder.
- Annotations
Constructors
- SliverLayoutDimensions({required double scrollOffset, required double precedingScrollExtent, required double viewportMainAxisExtent, required double crossAxisExtent})
-
Constructs a SliverLayoutDimensions with the specified parameters.
const
Properties
- crossAxisExtent → double
-
The number of pixels in the cross-axis.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- precedingScrollExtent → double
-
The scroll distance that has been consumed by all RenderSlivers that
came before this RenderSliver.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollOffset → double
-
The scroll offset, in this sliver's coordinate system, that corresponds to
the earliest visible part of this sliver in the AxisDirection if
SliverConstraints.growthDirection is GrowthDirection.forward or in the opposite
AxisDirection direction if SliverConstraints.growthDirection is GrowthDirection.reverse.
final
- viewportMainAxisExtent → double
-
The number of pixels the viewport can display in the main axis.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override