SliverGridGeometry class Null safety

Describes the placement of a child in a RenderSliverGrid.

See also:

Annotations

Constructors

SliverGridGeometry({required double scrollOffset, required double crossAxisOffset, required double mainAxisExtent, required double crossAxisExtent})
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
hashCode int
The hash code for this object.
read-onlyinherited
mainAxisExtent double
The extent of the child in the scrolling axis.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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.
read-only

Methods

getBoxConstraints(SliverConstraints constraints) BoxConstraints
Returns a tight BoxConstraints that forces the child to have the required size.
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