addTable method Null safety
- SchemaTable table
Adds a table to this instance.
Sets table
's SchemaTable.schema to this instance.
Implementation
void addTable(SchemaTable table) {
if (this[table.name!] != null) {
throw SchemaException(
"Table ${table.name} already exists and cannot be added.",
);
}
_tableStorage!.add(table);
table.schema = this;
}