shareImageToWhatsapp method

  1. @override
Future<bool?> shareImageToWhatsapp({
  1. required String imagePath,
  2. String? text,
  3. String? phone,
})
override

Implementation

@override
Future<bool?> shareImageToWhatsapp({required String imagePath, String? text, String? phone}) async {
  final bool? result = await _channel.invokeMethod(Platform.isAndroid ? 'shareToWhatsapp' : 'shareImageToWhatsapp', {
    'imagePath': imagePath,
    if (text != null) 'text': text,
    if (phone != null) 'phone': phone,
  });
  return result;
}