static Future<void> launchInBrowser(String url) async { if (!await launchUrl( Uri.parse(url), mode: LaunchMode.externalApplication, )) { throw 'Could not launch $url'; } }