clearAllImages static method

Future<void> clearAllImages()

Clears all the images from the local storage

Implementation

static Future<void> clearAllImages() async {
  for (String path in _cachedPaths) {
    var file = File(path);
    if (file.existsSync()) {
      file.deleteSync();
    }
  }
  _cachedPaths.clear();
}