clearCache method

Future<bool> clearCache()

Implementation

Future<bool> clearCache() async {
  try {
    final directory = await _generateDirectory();
    await directory.delete(recursive: true);
    return true;
  } catch (error) {
    return false;
  }
}