remove static method

Future<void> remove(
  1. String key
)

Remove a key from the session

Implementation

static Future<void> remove(String key) async {
  final sessionId = CookieService.get('FLINTSESSID');
  final data = await SessionManager.instance.getSession(sessionId);
  if (data == null) return;

  data.remove(key);

  // Save the updated session
  await SessionManager.instance.createSession(_response.raw, data);
}