getDatabaseOrThrow method

SqfliteFfiDatabase getDatabaseOrThrow()

Find the database or throw.arguments

Never null.

Implementation

SqfliteFfiDatabase getDatabaseOrThrow() {
  var database = getDatabase();
  if (database == null) {
    throw StateError('Database ${getDatabaseId()} not found');
  }
  return database;
}