openDocumentWindows function Null safety

dynamic openDocumentWindows(
  1. {required String path}
)

open document path

Implementation

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()}");
  }
}