launchWebsiteUrl static method

void launchWebsiteUrl(
  1. String address
)

Launches a website using the provided URL.

Implementation

static void launchWebsiteUrl(String address) async {
  final Uri url = Uri.parse(address);
  if (!await launchUrl(url)) {
    if (kDebugMode) print('Could not launch $url');
  }
}