EMMessage.createSendMessage constructor
EMMessage.createSendMessage({
- required EMMessageBody? body,
- EMMessageDirection direction = EMMessageDirection.SEND,
- String? to,
- 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;