database property

Future<Database> get database

Implementation

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