deleteFile function
delete a file
Implementation
void deleteFile(String filePath) {
final file = File(filePath);
final exists = file.existsSync();
if (!exists) return;
file.deleteSync();
}
delete a file
void deleteFile(String filePath) {
final file = File(filePath);
final exists = file.existsSync();
if (!exists) return;
file.deleteSync();
}