clear method

Future<void> clear()

Resets the Scope to its default state

Implementation

Future<void> clear() async {
  clearAttachments();
  level = null;
  span = null;
  _transaction = null;
  _fingerprint = [];
  _tags.clear();
  _extra.clear();
  _eventProcessors.clear();

  _clearBreadcrumbsSync();
  _setUserSync(null);

  await clearBreadcrumbs();
  await setUser(null);
}