clearAllImages static method

Future<void> clearAllImages()

delete all images from storage

Implementation

static Future<void> clearAllImages() async {
  await _cacheBox.close();
  await _cacheBox.deleteFromDisk();
  _cacheBox = await Hive.openBox(Constants.HIVE_CACHE_IMAGE_BOX);
}