clearCache method

Future<void> clearCache()

Clears the cache.

This will log the user out, and delete all data from the device.

The user will have to log in again.

Implementation

Future<void> clearCache() async {
  final dir = await appDirService.resolveApplicationDirectory();

  await dir.delete(recursive: true);
}