delete method
Implementation
@override
Future<void> delete(String uri, bool isDir) async {
final res = await methodChannel.invokeMethod<bool>('delete', {
'uri': uri,
'isDir': isDir,
});
if (res != true) {
throw Exception('Failed to delete file: $uri');
}
}