launchUrl static method

void launchUrl(
  1. BuildContext context,
  2. String url
)

Implementation

static void launchUrl(BuildContext context, String url) => canLaunch(url).then((value) {
  value ? launch(url, enableJavaScript: true) :
  showCustomAlertDialog(context, MultiLanguage.get('msg_not_open_link'));
});