launchURL function

dynamic launchURL(
  1. String url
)

Implementation

launchURL(String url) async {
  if (await canLaunchUrlString(url)) {
    await launchUrlString(url);
  } else {
    if (kDebugMode) {
      print('Could not launch $url');
    }
  }
}