getDb method

  1. @protected
Future<Database> getDb()

Access the latest instantiation of the database safely.

Implementation

@protected
Future<Database> getDb() {
  _openDb ??= databaseFactory.openDatabase(dbName);
  return _openDb!;
}