StaggeredTile.fit constructor

const StaggeredTile.fit(
  1. int crossAxisCellCount
)

Creates a StaggeredTile with the given crossAxisCellCount that fit its main axis extent to its content.

This tile will have a fixed main axis extent.

Implementation

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