go_to_url function
Implementation
Future<void> go_to_url(String url, {bool intab = false}) async {
final Uri _url = Uri.parse(url);
try {
if(!intab){
await launchUrl(_url);
}
else{
await launchUrl(_url, webOnlyWindowName: "_self");
}
} on PlatformException catch (e) {
logger.e('无法打开 URL,错误信息:$e');
} on UnsupportedError catch (e) {
logger.e('不支持的平台,错误信息:$e');
}
}