StaggeredTile.count constructor

const StaggeredTile.count(
  1. int crossAxisCellCount,
  2. double? mainAxisCellCount
)

Creates a StaggeredTile with the given crossAxisCellCount and mainAxisCellCount.

The main axis extent of this tile will be the length of mainAxisCellCount cells (inner spacings included).

Implementation

const StaggeredTile.count(this.crossAxisCellCount, this.mainAxisCellCount)
    : assert(crossAxisCellCount >= 0),
      assert(mainAxisCellCount != null && mainAxisCellCount >= 0),
      mainAxisExtent = null;