instance property

GeneratedDatabase get instance

Gets the global database instance

Implementation

static GeneratedDatabase get instance {
  if (_instance == null) {
    throw StateError(
      'Database not initialized. Call DatabaseProvider.setInstance() or '
      'initializeSynquillStorage() first.',
    );
  }
  return _instance!;
}