launchUrlWeb method

dynamic launchUrlWeb(
  1. String url, {
  2. bool newTab = false,
})

Implementation

launchUrlWeb(String url, {bool newTab = false}) async {
  if (!await launchUrl(Uri.parse(url),
      webOnlyWindowName: newTab ? '_blank' : '_self')) {
    throw Exception('Could not launch $url');
  }
}