Future<void> openLink(String url) async { if (await canLaunchUrlString(url)) { await launchUrlString(url); } else { throw "Error"; } }