launchInBrowser function

Future<void> launchInBrowser(
  1. Uri url
)

launch Url.

Implementation

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