Fix lint warnings when strict type check enabled

This commit is contained in:
westito 2022-08-01 12:15:42 +02:00
parent b2cb0f6000
commit 26333eafb5
1 changed files with 3 additions and 2 deletions

View File

@ -117,8 +117,9 @@ class DatabaseWriter {
// Write List of tables
final schemaScope = dbScope.leaf();
schemaScope
..write('@override\nIterable<TableInfo> get allTables => ')
..write('allSchemaEntities.whereType<TableInfo>();\n')
..write(
'@override\nIterable<TableInfo<Table, dynamic>> get allTables => ')
..write('allSchemaEntities.whereType<<Table, dynamic>>();\n')
..write('@override\nList<DatabaseSchemaEntity> get allSchemaEntities ')
..write('=> [');