SliverGridGeometry class
Describes the placement of a child in a RenderSliverGrid.
See also:
- SliverGridLayout, which represents the geometry of all the tiles in a grid.
- SliverGridLayout.getGeometryForChildIndex, which returns this object to describe the child's placement.
- RenderSliverGrid, which uses this class during its RenderSliverGrid.performLayout method.
- Annotations
- @immutable
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
- mainAxisExtent → double
-
The extent of the child in the scrolling axis. [...]
final
- 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
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
getBoxConstraints(
SliverConstraints constraints) → BoxConstraints - Returns a tight BoxConstraints that forces the child to have the required size.
-
toString(
) → String -
Returns a string representation of this object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited