launchUrlByInternal static method
Implementation
static launchUrlByInternal(String linkUrl) async {
if (linkUrl.isEmpty) {
ToastUtils.showToast(Strings.adJumpParamMissing.tr);
return;
}
Uri uri = Uri.parse(linkUrl);
try {
if (!await launchUrl(uri, mode: LaunchMode.inAppWebView)) {
ToastUtils.showToast("${Strings.adJumpNotSupport.tr} url: $linkUrl");
}
} catch (e) {
ToastUtils.showToast("${Strings.adJumpNotSupport.tr} url: $linkUrl");
}
}