ChatMessageModel constructor

ChatMessageModel({
  1. String message = '',
  2. String tempLocalId = '',
  3. String messageId = '',
  4. String timeSend = '',
  5. String senderId = '',
  6. String roomId = '',
  7. String quoteFromMessageId = '',
  8. String forwardFromMessageId = '',
  9. String forwardFromRoomId = '',
  10. List<AttachmentsModel> attachments = const [],
  11. SenderProfile? senderProfile,
  12. int type = 0,
  13. List<String> mentionIds = const [],
  14. bool isDeleted = false,
  15. bool isEdited = false,
  16. bool isSender = false,
  17. String text = '',
  18. String time = '',
  19. ChatMessageType messageType = ChatMessageType.text,
  20. MessageStatus messageStatus = MessageStatus.viewed,
  21. String blockerId = '',
  22. 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 = '',
});