deleteDir static method
Implementation
static bool deleteDir(String dirPath) {
final dir = Directory(dirPath);
if (dir.existsSync()) {
try {
dir.deleteSync(recursive: true);
return true;
} catch (e) {
return false;
}
}
return false;
}