SchemaTable.from(SchemaTable otherTable)

Creates a deep copy of otherTable.

Source

SchemaTable.from(SchemaTable otherTable) {
  name = otherTable.name;
  _columns = otherTable.columns.map((col) => new SchemaColumn.from(col)).toList();
  _uniqueColumnSet = otherTable._uniqueColumnSet;
}