CellData.count constructor

const CellData.count(
  1. int railCount,
  2. double mainAxisRelativeExtent, {
  3. int railLeadingOffset = 0,
})

Creates a CellData with the given railCount and mainAxisRelativeExtent.

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

Implementation

const CellData.count(
  this.railCount,
  double mainAxisRelativeExtent, {
  this.railLeadingOffset = 0,
})  : assert(railCount >= 0),
      assert(mainAxisRelativeExtent >= 0),
      this.mainAxisRelativeExtent = mainAxisRelativeExtent,
      mainAxisExtent = null,
      intrinsic = false,
      breakLine = false;