openURL static method

dynamic openURL(
  1. String url
)

Implementation

static openURL(String url) async {
  final parsedUrl = Uri(path: url);
  if (await canLaunchUrl(parsedUrl)) {
    await launchUrl(parsedUrl);
  } else {
    throw 'Could not launch $url';
  }
}