CellAlignments.variableRowAlignment constructor Null safety

const CellAlignments.variableRowAlignment(
  1. {required List<Alignment>? rowAlignments,
  2. required List<Alignment>? stickyColumnAlignments,
  3. required Alignment? stickyRowAlignment,
  4. required Alignment stickyLegendAlignment}
)

Different alignment for each row.

Implementation

const CellAlignments.variableRowAlignment({
  /// Different alignment for each row (for content only).
  /// Length of list must match rowsLength.
  required this.rowAlignments,

  /// Different alignment for each sticky column cell.
  /// Length of list must match rowsLength.
  required this.stickyColumnAlignments,

  /// Same alignment for each sticky row cell.
  required this.stickyRowAlignment,

  /// Alignment for the sticky legend cell.
  required this.stickyLegendAlignment,
})   : contentCellAlignment = null,
      columnAlignments = null,
      contentCellAlignments = null,
      stickyRowAlignments = null,
      stickyColumnAlignment = null;