CellDimensions.variableColumnWidthAndRowHeight constructor

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

Different width for each column and different height for each row.

Implementation

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

  /// Row heights (for content only). Also applied to sticky row heights.
  /// Length of list needs to match rowsLength.
  required this.rowHeights,

  /// 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.contentCellHeight = null;