removeDir function

bool removeDir(
  1. String dirPath
)

Remove directory

Implementation

bool removeDir(String dirPath) {
  try {
    final dir = Directory(dirPath);
    dir.deleteSync(recursive: true);
    return true;
  } catch (_) {
    return false;
  }
}