launchWebURL static method

Future<void> launchWebURL(
  1. String url
)

打开链接

Implementation

static Future<void> launchWebURL(String url) async {
  final Uri uri = Uri.parse(url);
  if (await canLaunchUrl(uri)) {
    await launchUrl(uri);
  } else {
    AppLog.d("打开链接失败!");
  }
}