ChatMessageModel constructor
ChatMessageModel({
- String message = '',
- String tempLocalId = '',
- String messageId = '',
- String timeSend = '',
- String senderId = '',
- String roomId = '',
- String quoteFromMessageId = '',
- String forwardFromMessageId = '',
- String forwardFromRoomId = '',
- List<
AttachmentsModel> attachments = const [], - SenderProfile? senderProfile,
- int type = 0,
- List<
String> mentionIds = const [], - bool isDeleted = false,
- bool isEdited = false,
- bool isSender = false,
- String text = '',
- String time = '',
- ChatMessageType messageType = ChatMessageType.text,
- MessageStatus messageStatus = MessageStatus.viewed,
- String blockerId = '',
- String id = '',
@ response in socket message
Implementation
ChatMessageModel({
this.message = '',
this.tempLocalId = '',
this.messageId = '',
this.timeSend = '',
this.senderId = '',
this.roomId = '',
this.quoteFromMessageId = '',
this.forwardFromMessageId = '',
this.forwardFromRoomId = '',
this.attachments = const [],
this.senderProfile,
this.type = 0,
this.mentionIds = const [],
this.isDeleted = false,
this.isEdited = false,
this.isSender = false,
this.text = '',
this.time = '',
this.messageType = ChatMessageType.text,
this.messageStatus = MessageStatus.viewed,
this.blockerId = '',
this.id = '',
});