db property

Future<Database> db

Implementation

Future<Database> get db async {
  if (_database != null) return _database!;
  // lazily instantiate the db the first time it is accessed
  _database = await _initDatabase();
  return _database!;
}