deleteFile static method
Implementation
static Future<bool> deleteFile(String filepath) async {
try {
// qualify file name
filepath = filepath;
// delete the file
if (_fileExists(filepath)) File(filepath).delete();
return true;
} catch (e) {
Log().exception(e,
caller: 'platform.vm.dart => bool deleteFile($filepath)');
return false;
}
}