flutter clear directory code example
Example: flutter delete directory
import 'dart:io';
void main() {
final dir = Directory(dirPath);
dir.deleteSync(recursive: true);
}
import 'dart:io';
void main() {
final dir = Directory(dirPath);
dir.deleteSync(recursive: true);
}