CellDimensions.variableColumnWidth constructor

const CellDimensions.variableColumnWidth({
  1. required List<double>? columnWidths,
  2. required double? contentCellHeight,
  3. required double stickyLegendWidth,
  4. required double stickyLegendHeight,
})

Different width for each column.

Implementation

const CellDimensions.variableColumnWidth({
  /// Column widths (for content only). Also applied to sticky row widths.
  /// Length of list needs to match columnsLength.
  required this.columnWidths,

  /// Content cell height. Also applied to sticky column height.
  required this.contentCellHeight,

  /// Sticky legend width. Also applied to sticky column width.
  required this.stickyLegendWidth,

  /// Sticky legend height. Also applied to sticky row height.
  required this.stickyLegendHeight,
})  : this.contentCellWidth = null,
      this.rowHeights = null;