findTableNamed method

TableDefinition? findTableNamed(
  1. String tableName
)

Finds a table by its name, or returns null if no table with the given name.

Implementation

TableDefinition? findTableNamed(String tableName) {
  return tables.firstWhereOrNull((table) => table.name == tableName);
}