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