shareImageToWhatsappBusiness method

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

Implementation

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