launchUrl static method

dynamic launchUrl(
  1. dynamic url
)

Implementation

static launchUrl(url) async {
  if (await canLaunchUrlString(url)) {
    await launchUrlString(url, mode: LaunchMode.externalApplication);
  } else {
    throw 'Could not launch';
  }
}