StaggeredGridTile.count constructor

const StaggeredGridTile.count({
  1. Key? key,
  2. required int crossAxisCellCount,
  3. required num mainAxisCellCount,
  4. required Widget child,
})

Creates a StaggeredGrid's tile that takes a fixed number of cells along the main axis.

Implementation

const StaggeredGridTile.count({
  Key? key,
  required int crossAxisCellCount,
  required num mainAxisCellCount,
  required Widget child,
}) : this._(
        key: key,
        crossAxisCellCount: crossAxisCellCount,
        mainAxisCellCount: mainAxisCellCount,
        mainAxisExtent: null,
        child: child,
      );