sendProductImage static method
Future<void>
sendProductImage(
- String receiverUserIdentifier,
- WTChatInput chatInput, {
- required dynamic onCompletion(
- 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);
}