openBrowser static method

dynamic openBrowser(
  1. String link
)

Implementation

static openBrowser(String link) async {
  final Uri url = Uri.parse(link);
  if (!await launchUrl(url)) {
    throw Exception('Could not launch $link');
  }
}