launchURL static method

void launchURL(
  1. String url
)

Implementation

static void launchURL(String url) async {
  final Uri _url = Uri.parse(url);
  if (!await launchUrl(_url, mode: LaunchMode.externalApplication)) {
    throw Exception('Could not lauch $_url');
  }
}