rmSync method
Removes files and directories (with recursive option).
Implementation
@override
void rmSync(String path, {bool recursive = false, bool force = false}) {
try {
if (FileSystemEntity.isDirectorySync(path)) {
Directory(path).deleteSync(recursive: recursive);
} else {
File(path).deleteSync();
}
} catch (e) {
if (!force) rethrow;
}
}