openBrowser function
Implementation
void openBrowser(String url) {
try {
if (Platform.isMacOS) {
Process.run('open', [url]);
} else if (Platform.isWindows) {
Process.run('start', [url], runInShell: true);
} else if (Platform.isLinux) {
Process.run('xdg-open', [url]);
}
} catch (e) {
print('$ansiRed⚠️ Failed to open browser: $e$ansiReset');
}
}