setColumnFormatting method

void setColumnFormatting(
  1. int column, {
  2. String? header,
  3. TextAlignment? alignment,
  4. int? width,
})

Adjusts the formatting for a given column.

Implementation

void setColumnFormatting(
  int column, {
  String? header,
  TextAlignment? alignment,
  int? width,
}) {
  if (header != null) _table[0][column] = header;
  if (alignment != null) _columnAlignments[column] = alignment;
  if (width != null) _columnWidths[column] = width;

  assert(_tableIntegrity);
}