deleteFile method
Deletes a file using its path via the native platform.
Implementation
@override
Future<bool> deleteFile({required String filePath}) async {
try {
final result = await methodChannel.invokeMethod<bool>('deleteFile', {
'path': filePath,
});
return result ?? false;
} catch (e) {
debugPrint("👉🏻 deleteFile error: $e");
return false;
}
}