ChatMessage.createReceiveMessage constructor
- {required ChatMessageBody body,
- ChatType chatType = ChatType.Chat}
Creates a received message instance.
Param body The message body.
Param chatType The chat type, default is single chat, if it is group chat or chat room, see ChatType.
Return The message instance.
Implementation
ChatMessage.createReceiveMessage({
required this.body,
this.chatType = ChatType.Chat,
}) {
this.onlineState = true;
this.direction = MessageDirection.RECEIVE;
}