launchInBrowser static method

Future<void> launchInBrowser(
  1. String url
)

Implementation

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