launchUrl static method
dynamic
launchUrl(
- dynamic url
Implementation
static launchUrl(url) async {
if (await canLaunchUrlString(url)) {
await launchUrlString(url, mode: LaunchMode.externalApplication);
} else {
throw 'Could not launch';
}
}