openDocument method Null safety
- {required String filePath}
open document filePath
Implementation
Future<void> openDocument({required String filePath}) async {
try {
if (Platform.isWindows) return await openDocumentWindows(path: filePath);
return await methodChannel.invokeMethod("openDocument", filePath);
} on PlatformException catch (e) {
throw OpenDocumentException('openDocument: ${e.stacktrace.toString()}');
}
}