onTapForSpanText function

dynamic onTapForSpanText(
  1. String e
)

Implementation

onTapForSpanText(String e) {
  var stringType = spannableTextType(e);
  debugPrint("Text span click");
  if (stringType == "website") {
    if (e.startsWith(Constants.webChatLogin)) {
      AppUtils.isNetConnected().then((value) {
        if (value) {
          NavUtils.toNamed(Routes.joinCallPreview, arguments: {
            "callLinkId": e.replaceAll(Constants.webChatLogin, "")
          });
        } else {
          toToast(getTranslated("noInternetConnection"));
        }
      });
    } else {
      launchInBrowser(e);
    }
    // return;
  } else if (stringType == "mobile") {
    makePhoneCall(e);
    // launchCaller(e);
    // return;
  } else if (stringType == "email") {
    debugPrint("email click");
    launchEmail(e);
    // return;
  } else {
    debugPrint("no condition match");
  }
  // return;
}