pathWeb method Null safety
path web chrome and edge
Implementation
static Future<String> pathWeb() async {
String chrome = 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe';
String edge =
'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe';
try {
if (await hasFolderWindows(path: chrome)) {
return chrome;
}
return edge;
} catch (e) {
throw OpenDocumentException("pathWeb: ${e.toString()}");
}
}