launchExternal static method

Future<void> launchExternal(
  1. String url
)

Implementation

static Future<void> launchExternal(String url) async {
  if (await canLaunchUrl(Uri.parse(url))) {
    await launchUrl(Uri.parse(url));
  } else {
    throw 'Could not launch $url';
  }
}