launchInBrowser static method

Future<void> launchInBrowser(
  1. String url
)

Implementation

static Future<void> launchInBrowser(String url) async {
  Uri uri = Uri.parse(url);
  if (await canLaunchUrl(uri)) {
    await launchUrl(uri, mode: LaunchMode.externalApplication);
  } else {
    print("ErrOr launching ${url}");
  }
}