SliverGridDelegate class Null safety

Controls the layout of tiles in a grid.

Given the current constraints on the grid, a SliverGridDelegate computes the layout for the tiles in the grid. The tiles can be placed arbitrarily, but it is more efficient to place tiles in roughly in order by scroll offset because grids reify a contiguous sequence of children.

See also:

Implementers

Constructors

SliverGridDelegate()
Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

getLayout(SliverConstraints constraints) SliverGridLayout
Returns information about the size and position of the tiles in the grid.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
shouldRelayout(covariant SliverGridDelegate oldDelegate) bool
Override this method to return true when the children need to be laid out.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited