shareToWhatsapp method
Shares a message and optional file to WhatsApp on Android.
message The text message to share.
filePath Optional path to an image or video file to share.
Returns a String indicating the result of the sharing operation.
Example:
await easySocialShare.android.shareToWhatsapp(
"Check out this image!",
"/path/to/image.jpg"
);
Implementation
Future<String> shareToWhatsapp(String message, String? filePath) {
return EasySocialSharePlatform.instance.shareToWhatsappAndroid(
message,
filePath,
);
}