WT1.1.11 Null-Safe migration

This commit is contained in:
bossanyit
2021-04-02 11:42:26 +02:00
parent a656562c49
commit 01148c6e39
219 changed files with 3208 additions and 5334 deletions
+2 -4
View File
@@ -5,7 +5,7 @@ import 'package:sqflite/sqflite.dart';
class DB {
static final DB _singleton = DB._internal();
String dbName = "workouttest.db";
Database _db;
late Database _db;
factory DB() {
return _singleton;
@@ -30,9 +30,7 @@ class DB {
}
Future<void> closeDb() async {
if ( _db != null ) {
this._db.close();
}
this._db.close();
}
Database getDB() => this._db;