deleteFile static method
Implementation
static void deleteFile(String path) {
try {
final File file = File(path);
final bool exists = file.existsSync();
if (exists) {
file.deleteSync();
}
} catch (_) {
rethrow;
}
}
static void deleteFile(String path) {
try {
final File file = File(path);
final bool exists = file.existsSync();
if (exists) {
file.deleteSync();
}
} catch (_) {
rethrow;
}
}