clearSessions static method

Future<void> clearSessions()

Clears all, including ongoing, sessions in the session history. Note that callbacks cannot be triggered for deleted sessions.

Implementation

static Future<void> clearSessions() async {
  try {
    await init();
    return _platform.clearSessions();
  } on PlatformException catch (e, stack) {
    print("Plugin clearSessions error: ${e.message}");
    return Future.error("clearSessions failed.", stack);
  }
}