clear method

Future<void> clear()

Clears the persisted context and starts a fresh session (used by clearData).

Implementation

Future<void> clear() async {
  _active = null;
  _sessionId = _generateSessionId();
  try {
    await _storage.removeAttribution();
  } catch (_) {
    // best-effort
  }
}