EMMessage.createSendMessage constructor

EMMessage.createSendMessage({
  1. required EMMessageBody? body,
  2. EMMessageDirection direction = EMMessageDirection.SEND,
  3. String? to,
  4. bool? hasRead = true,
})

构造发送的消息

Implementation

EMMessage.createSendMessage({
  required this.body,
  this.direction = EMMessageDirection.SEND,
  this.to,
  this.hasRead = true,
})  : this.from = EMClient.getInstance.currentUsername,
      this.conversationId = to;