reset method

Future<void> reset()

Resets the current user identity and starts a fresh anonymous session.

Implementation

Future<void> reset() async {
  if (!_isInitialized) return;
  await _queueManager.flush();
  await _identity.reset();
  await _sessionManager.startNewSession();
}