WT1.1.11 Null-Safe migration
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user