onImageTapped method

Future<void> onImageTapped(
  1. String url
)

Implementation

Future<void> onImageTapped(String url) async {
  var urlLaunchable = await canLaunchUrl(Uri.parse(url));// canLaunch(url); //canLaunch is from url_launcher package
  if(urlLaunchable) {
    counter = 0;
    navigting = false;
    await launchUrl(Uri.parse(url));//launch(url); //launch is from url_launcher package to launch URL
  }else{
    Log("WebView MOBILE").i("URL can't be launched.");
  }
}