openDocumentWindows method Null safety
- {required String path}
open document path
Implementation
static openDocumentWindows({required String path}) async {
var type = path
.split(".")
.last;
try {
String pathValue = await _getPathOpenDocument(type: type);
Process.run(pathValue, [path]).then((ProcessResult results) {
debugPrint(results.stdout);
});
} catch (e) {
throw OpenDocumentException("openDocumentWindows: ${e.toString()}");
}
}