removeColumn method Null safety

void removeColumn(
  1. SchemaColumn column
)

Removes column from this table.

Exact column must be in this table, else an exception is thrown. Sets column's SchemaColumn.table to null.

Implementation

void removeColumn(SchemaColumn column) {
  if (!columns.contains(column)) {
    throw SchemaException("Column ${column.name} does not exist on $name.");
  }

  _columnStorage!.remove(column);
  column.table = null;
}