StaggeredGridTile.fit constructor

const StaggeredGridTile.fit({
  1. Key? key,
  2. required int crossAxisCellCount,
  3. required Widget child,
})

Creates a StaggeredGrid's tile that fits its main axis extent to its child's content

Implementation

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