launch function

Future<void> launch(
  1. String url
)

Implementation

Future<void> launch(String url) async {
  Show.action("OPENING", "BROWSER", "FOR", "AUTHENTICATION");
  if (Platform.isWindows) {
    await Process.run("start", [url], runInShell: true);
  } else if (Platform.isMacOS) {
    await Process.run('open', [url]);
  } else if (Platform.isLinux) {
    await Process.run('xdg-open', [url]);
  }
}