tableForName method
Returns a SchemaTable for name
.
name
is case-insensitively compared to every SchemaTable.name
in tables. If no table with this name exists, null is returned.
Note: tables are typically prefixed with an underscore when using Liquidart naming conventions for ManagedObject.
Implementation
SchemaTable? tableForName(String name) {
var lowercaseName = name.toLowerCase();
return tables!.firstWhere((t) => t!.name!.toLowerCase() == lowercaseName,
orElse: () => null);
}