void replaceColumn(SchemaColumn existingColumn, SchemaColumn newColumn)

Source

void replaceColumn(SchemaColumn existingColumn, SchemaColumn newColumn) {
  existingColumn = this[existingColumn.name];
  if (existingColumn == null) {
    throw new SchemaException(
        "Column ${existingColumn.name} does not exist on $name.");
  }

  var index = columns.indexOf(existingColumn);
  columns[index] = newColumn;
}