openFile method
Implementation
@override
Future<dynamic> openFile(String filePath) async {
dynamic documentResponse;
try {
documentResponse = await mirrorFlyMethodChannel
.invokeMethod('open_file', {"filePath": filePath});
debugPrint("documentResponse ==> $documentResponse");
return documentResponse;
} on PlatformException catch (e) {
debugPrint("Platform Exception ===> $e");
rethrow;
} on Exception catch (error) {
debugPrint("Exception ==> $error");
rethrow;
}
}