sendProductImage static method

Future<void> sendProductImage(
  1. String receiverUserIdentifier,
  2. WTChatInput chatInput, {
  3. required dynamic onCompletion(
    1. WTResult result
    ),
})

To send image message to user

Implementation

static Future<void> sendProductImage(String receiverUserIdentifier, WTChatInput chatInput, {required Function(WTResult result) onCompletion}) async {
  _sendWannatalkMethod(_kWTLoadUserChatWithImage, <String, dynamic>{
    _cWTUserIdentifier: receiverUserIdentifier,
    _cISource: chatInput.source,
    _cICaption: chatInput.caption,
    _cIImage: chatInput.imagePath,
    _cIProductID: chatInput.productID,
    _cIProductName: chatInput.productName,
    _cIProductPrice: chatInput.productPrice,
    _cIStoreID: chatInput.storeID
  }, onCompletion: onCompletion);
}