Future<void> urlLaunch(String link) async { if (await canLaunch(link)) { await launch(link); } else { throw "could not launch"; } }