launchURL static method
Opens the provided URL in an external browser.
Implementation
static Future<void> launchURL(String url) async {
final uri = Uri.parse(url);
if (!await launchUrl(uri, mode: LaunchMode.externalApplication)) {
throw Exception('Could not launch $url');
}
}