share method
Implementation
@override
Future<bool> share({
WhatsApp type = WhatsApp.standard,
String? phone,
String? text,
XFile? file,
}) async {
assert(phone != null, 'Phone parameter is required');
assert(text != null, 'Text parameter is required');
final url = Uri.https(
'wa.me',
phone!.removeNonNumber(),
<String, String>{'text': text!},
);
if (await canLaunchUrl(url)) {
return await launchUrl(url);
}
return false;
}