whyThisClicked method

Future<void> whyThisClicked()

Implementation

Future<void> whyThisClicked() async {
  String url = "https://support.doceree.com/hc/en-us/articles/360050646094-Why-this-Ad-";
  var urlLaunchable = await canLaunchUrl(Uri.parse(url)); //canLaunch is from url_launcher package
  if(urlLaunchable){
    await launchUrl(Uri.parse(url)); //launch is from url_launcher package to launch URL
  }else{
    Log("Consent Widget").i("URL can't be launched.");
  }
}