forgetSession static method

Future<void> forgetSession()

Forgets the persisted session: its id, start, last activity and sampling verdict. The next launch starts a session that has not yet seen a user.

Implementation

static Future<void> forgetSession() async {
  final storage = await _storage();
  SessionState(storage: SafeStorage(storage)).clearSessionState();
  await storage.flushWrites();
}