openWhatsApp method
Implementation
@override
Future openWhatsApp({
required String phoneNumber,
required String message,
}) async {
String url = 'https://wa.me/$phoneNumber?text=$message';
final uri = Uri.parse(url);
if (!await canLaunchUrl(uri)) {
throw 'Could not open the whatsapp.';
} else {
_launch(uri);
}
}