From 26333eafb519cadf729c1656f6c149cfaf722648 Mon Sep 17 00:00:00 2001 From: westito Date: Mon, 1 Aug 2022 12:15:42 +0200 Subject: [PATCH] Fix lint warnings when strict type check enabled --- drift_dev/lib/src/writer/database_writer.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drift_dev/lib/src/writer/database_writer.dart b/drift_dev/lib/src/writer/database_writer.dart index 9525f240..9571386e 100644 --- a/drift_dev/lib/src/writer/database_writer.dart +++ b/drift_dev/lib/src/writer/database_writer.dart @@ -117,8 +117,9 @@ class DatabaseWriter { // Write List of tables final schemaScope = dbScope.leaf(); schemaScope - ..write('@override\nIterable get allTables => ') - ..write('allSchemaEntities.whereType();\n') + ..write( + '@override\nIterable> get allTables => ') + ..write('allSchemaEntities.whereType<>();\n') ..write('@override\nList get allSchemaEntities ') ..write('=> [');