dispose method

Future<void> dispose()

Close and dispose the database.

Implementation

Future<void> dispose() async {
  try {
    await _db?.close();
  } catch (e) {
    dbLogger.warning('SqliteEventStorage: dispose failed: $e');
  }
  _db = null;
  _isOpen = false;
}