CellAlignments.variableColumnAlignment constructor Null safety

const CellAlignments.variableColumnAlignment(
  1. {required List<Alignment>? columnAlignments,
  2. required List<Alignment>? stickyRowAlignments,
  3. required Alignment? stickyColumnAlignment,
  4. required Alignment stickyLegendAlignment}
)

Different alignment for each column.

Implementation

const CellAlignments.variableColumnAlignment({
  /// Different alignment for each column (for content only).
  /// Length of list must match columnsLength.
  required this.columnAlignments,

  /// Different alignment for each sticky row cell.
  /// Length of list must match columnsLength.
  required this.stickyRowAlignments,

  /// Same alignment for each sticky column cell.
  required this.stickyColumnAlignment,

  /// Alignment for the sticky legend cell.
  required this.stickyLegendAlignment,
})   : contentCellAlignment = null,
      rowAlignments = null,
      contentCellAlignments = null,
      stickyColumnAlignments = null,
      stickyRowAlignment = null;