openDocument method
Open the document by the indicated path filePath
,
Implementation
@override
Future<void> openDocument({required String filePath}) async {
try {
if (Platform.isWindows)
return await methodChannel
.invokeMethod("openDocument", {"path": filePath});
else
return await methodChannel.invokeMethod("openDocument", filePath);
} on PlatformException catch (e) {
throw OpenDocumentException('openDocument: ${e.toString()}');
}
}