revamp: Rename actualTableNameStatic into $name

This commit is contained in:
ValentinVignal 2023-09-21 11:36:10 +08:00
parent 5b6571ec7f
commit d001ad533f
No known key found for this signature in database
GPG Key ID: 040FFDADFB7EF05A
1 changed files with 3 additions and 5 deletions

View File

@ -407,11 +407,9 @@ class TableWriter extends TableOrViewWriter {
writeGetColumnsOverride();
buffer
..write('@override\nString get aliasedName => '
'_alias ?? \'${table.id.name}\';\n')
..write(
'@override\n String get actualTableName => \'${table.id.name}\';\n')
..write(
'static String get actualTableNameStatic => \'${table.id.name}\';\n');
'_alias ?? actualTableName;\n')
..write('@override\n String get actualTableName => \$name;\n')
..write('static const String \$name = \'${table.id.name}\';\n');
_writeValidityCheckMethod();
_writePrimaryKeyOverride();