StaggeredTile class
Holds the dimensions of a StaggeredGridView's tile.
A StaggeredTile always overlaps an exact number of cells in the cross axis of a StaggeredGridView. The main axis extent can either be a number of pixels or a number of cells to overlap.
Constructors
- StaggeredTile.count(int crossAxisCellCount, double? mainAxisCellCount)
-
Creates a StaggeredTile with the given crossAxisCellCount and
mainAxisCellCount.
const
- StaggeredTile.extent(int crossAxisCellCount, double? mainAxisExtent)
-
Creates a StaggeredTile with the given crossAxisCellCount and
mainAxisExtent.
const
- StaggeredTile.fit(int crossAxisCellCount)
-
Creates a StaggeredTile with the given crossAxisCellCount that
fit its main axis extent to its content.
const
Properties
- crossAxisCellCount → int
-
The number of cells occupied in the cross axis.
final
- fitContent → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- mainAxisCellCount → double?
-
The number of cells occupied in the main axis.
final
- mainAxisExtent → double?
-
The number of pixels occupied in the main axis.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited