deleteCacheImageDir static method

Future<void> deleteCacheImageDir(
  1. String path
)

Implementation

static Future<void> deleteCacheImageDir(String path) async {
  final cacheDir = Directory(path);
  if (cacheDir.existsSync()) {
    cacheDir.deleteSync(recursive: true);
  }
}