launchUrl static method
Launches the specified URL using the default web browser.
Parameters:
url
: The URL to be launched.
Returns:
- A Future that completes when the URL has been launched.
Implementation
static Future<void> launchUrl(String url) async {
if (await canLaunchUrlString(url)) {
await launchUrlString(url);
}
}