removeFile static method
Implementation
static Future<bool> removeFile(String filePath) async {
if (isFile(filePath)) {
File file = File(filePath);
try {
await file.delete(recursive: true);
return true;
} catch (e) {
print("removeFile error = $e");
return false;
}
}
return true;
}