StaggeredGridTile.extent constructor

const StaggeredGridTile.extent({
  1. Key? key,
  2. required int crossAxisCellCount,
  3. required double mainAxisExtent,
  4. required Widget child,
})

Creates a StaggeredGrid's tile that takes a specific amount of space along the main axis.

Implementation

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