launchCTA function

Future<void> launchCTA(
  1. String link
)

Implementation

Future<void> launchCTA(String link) async {
  if (!await launchUrl(
    Uri.parse(
      link,
    ),
  )) {
    throw Exception(
      'Could not open the link',
    );
  }
}