launchToWebsite function

Future<void> launchToWebsite(
  1. String url
)

Implementation

Future<void> launchToWebsite(String url) async {
  if (url.isEmpty) {
    return;
  }

  final Uri uri = Uri.parse(url);
  await launchUrl(uri, mode: LaunchMode.externalApplication);
}