SliverGridDelegate class

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:

Implemented by

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-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited