SliverStaggeredGridGeometry class

Describes the placement of a child in a RenderSliverStaggeredGrid.

See also:

Annotations

Constructors

SliverStaggeredGridGeometry({required double scrollOffset, required double crossAxisOffset, required double? mainAxisExtent, required double crossAxisExtent, required int crossAxisCellCount, required int blockIndex})
Creates an object that describes the placement of a child in a RenderSliverStaggeredGrid.
const

Properties

blockIndex int
final
crossAxisCellCount int
final
crossAxisExtent double
The extent of the child in the non-scrolling axis.
final
crossAxisOffset double
The offset of the child in the non-scrolling axis.
final
hashCode int
The hash code for this object.
no setterinherited
hasTrailingScrollOffset bool
no setter
mainAxisExtent double?
The extent of the child in the scrolling axis.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollOffset double
The scroll offset of the leading edge of the child relative to the leading edge of the parent.
final
trailingScrollOffset double
The scroll offset of the trailing edge of the child relative to the leading edge of the parent.
no setter

Methods

copyWith({double? scrollOffset, double? crossAxisOffset, double? mainAxisExtent, double? crossAxisExtent, int? crossAxisCellCount, int? blockIndex}) SliverStaggeredGridGeometry
getBoxConstraints(SliverConstraints constraints) BoxConstraints
Returns a tight BoxConstraints that forces the child to have the required size.
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.
inherited