diff --git a/lib/app_db.dart b/lib/app_db.dart index c9afe692..37b76db8 100644 --- a/lib/app_db.dart +++ b/lib/app_db.dart @@ -30,7 +30,7 @@ class AppDb { /// This function guarantees that: /// 1) Database is always closed after [fn] exits, even with an error /// 2) Only at most 1 database instance being opened at any time - Future use(FutureOr Function(Database) fn) async { + Future use(FutureOr Function(Database db) fn) async { // make sure only one client is opening the db return await _lock.synchronized(() async { final db = await _open();