launchURLLaunchDialog function

Future<void> launchURLLaunchDialog(
  1. BuildContext context,
  2. {required String url,
  3. required String message}
)

Implementation

Future<void> launchURLLaunchDialog(BuildContext context,
        {required String url, required String message}) async =>
    await launchConfirmDialog(context,
        message: Text(message),
        onConfirm: () async => await launchUrl(Uri.parse(url)));