SliverSimpleGridDelegate class abstract
Controls the layout of tiles in a some slivers.
See also:
- SliverSimpleGridDelegateWithFixedCrossAxisCount, which creates a layout with a fixed number of tiles in the cross axis.
- SliverSimpleGridDelegateWithMaxCrossAxisExtent, which creates a layout with tiles that have a maximum cross-axis extent.
- RenderSliverMasonryGrid, which uses this delegate to control the layout of its tiles.
Constructors
- SliverSimpleGridDelegate()
-
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.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getCrossAxisCount(
SliverConstraints constraints, double crossAxisSpacing) → int - Returns the number of children than can be layout in the cross axis.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldRelayout(
covariant SliverSimpleGridDelegate 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