openFile method

  1. @override
Future openFile(
  1. String filePath
)
override

Implementation

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