SliverLayoutGeometry class

Describes the placement of a child in a RenderSliverLayoutGrid.

See also:

Annotations

Constructors

SliverLayoutGeometry({required double scrollOffset, required double crossAxisOffset, required double? mainAxisExtent, required double crossAxisExtent, required int railCount, required int railLeadingOffset, required int startRailIndex})
Creates an object that describes the placement of a child in a RenderSliverGrid.
const

Properties

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
endRailIndex int
no setter
hashCode int
The hash code for this object.
no setterinherited
mainAxisExtent double?
The extent of the child in the scrolling axis.
final
railCount int
The number of cells occupied in the cross axis.
final
railLeadingOffset int
The number of rails between the first available position and the cell.
final
railStride int
no setter
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
startRailIndex int
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? startRailIndex, int? railLeadingOffset}) SliverLayoutGeometry
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