@@ -53,8 +53,6 @@ class DatabaseTransactionBase<TABLES extends TablesBase> {
5353 required Map <String , Object > where,
5454 bool setContainsOptional = false ,
5555 }) async {
56- assert (set != null );
57- assert (where != null );
5856 _assertColumnNames (set );
5957 _assertColumnNames (where);
6058 assert (! where.keys.any ((key) => set .containsKey (key)));
@@ -149,9 +147,7 @@ abstract class DatabaseAccessBase<TX extends DatabaseTransactionBase<TABLES>,
149147 required this .config,
150148 required this .tables,
151149 required this .migrations,
152- }) : assert (config != null ),
153- assert (tables != null ),
154- assert (migrations != null );
150+ });
155151
156152 final TABLES tables;
157153 final DatabaseConfig config;
@@ -229,7 +225,7 @@ abstract class DatabaseAccessBase<TX extends DatabaseTransactionBase<TABLES>,
229225
230226 final migrationRun = clock.now ().toUtc ();
231227 await run ((conn) async {
232- final List < Migrations < TX , TABLES >> migrations = this .migrations.migrations;
228+ final migrations = this .migrations.migrations;
233229 for (final migration in migrations) {
234230 if (migration.id > lastMigration) {
235231 _logger.fine ('Running migration ${migration .id } '
@@ -318,8 +314,7 @@ class Migrations<TX extends DatabaseTransactionBase<TABLES>,
318314 required this .id,
319315 this .versionCode = 'a' ,
320316 required this .up,
321- }) : assert (id != null ),
322- assert (up != null );
317+ });
323318
324319 final int id;
325320 final String versionCode;
@@ -336,7 +331,7 @@ class SimpleWhere {
336331 checkState (conditions.isNotEmpty);
337332 }
338333
339- final Map <String , Object > conditions;
334+ final Map <String , Object ? > conditions;
340335
341336 String sql () =>
342337 conditions.entries.map ((e) => '${e .key } = @${e .key }' ).join (' AND ' );
0 commit comments