sendImageMessage method

void sendImageMessage(
  1. String filePath,
  2. int fileSize, {
  3. NIMMessage? replyMsg,
})

Implementation

void sendImageMessage(String filePath, int fileSize, {NIMMessage? replyMsg}) {
  MessageBuilder.createImageMessage(
          sessionId: sessionId,
          sessionType: sessionType,
          filePath: filePath,
          fileSize: fileSize)
      .then((value) {
    if (value.isSuccess) {
      sendMessage(value.data!, replyMsg: replyMsg);
    }
  });
}