import 'package:url_launcher/url_
launcher.dart';
Future openWhatsApp({required String mobileNo, required String message}) async {
String _url = Uri.encodeFull("whatsapp://
send?phone=$mobileNo&text=$
message");
//String _url = "
https://api.whatsapp.com/send?phone=$mobileNo&text=${Uri.parse(message)}";
if (await canLaunch(_url)) {
await launch(_url);
} else {
throw ('Could not launch Whatsapp');
}
}