openWebPage function

void openWebPage(
  1. String url, {
  2. LaunchMode mode = LaunchMode.platformDefault,
})

打开网页

Implementation

void openWebPage(String url, {LaunchMode mode = LaunchMode.platformDefault}) {
  launchUrl(Uri.parse(url), mode: mode);
}