mylaunchUrl static method

Future<void> mylaunchUrl(
  1. String url
)

Implementation

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