launchInBrowser function

Future<void> launchInBrowser(
  1. Uri url
)

Launch Uri in Browser.

Implementation

Future<void> launchInBrowser(Uri url) async {
  if (!await launchUrl(
    url,
    mode: LaunchMode.externalApplication,
  )) {
    throw 'Could not launch $url';
  }
}