ChatMessageModel constructor

ChatMessageModel({
  1. required String chatUserJid,
  2. required String contactType,
  3. required bool isItCarbonMessage,
  4. required bool isItSavedContact,
  5. required bool isMessageDeleted,
  6. required bool isMessageRecalled,
  7. required bool isMessageSentByMe,
  8. required bool isMessageStarred,
  9. required bool isSelected,
  10. required bool isThisAReplyMessage,
  11. required String messageChatType,
  12. MessageCustomField? messageCustomField,
  13. required String messageId,
  14. required int messageSentTime,
  15. required String messageStatus,
  16. required bool isMessageEdited,
  17. required String messageTextContent,
  18. required String messageType,
  19. List<MessageMetaData>? metaData = const [],
  20. ReplyParentChatMessage? replyParentChatMessage,
  21. required String senderNickName,
  22. required String senderUserJid,
  23. required String senderUserName,
  24. ContactChatMessage? contactChatMessage,
  25. MediaChatMessage? mediaChatMessage,
  26. LocationChatMessage? locationChatMessage,
  27. required String topicId,
})

Constructs a ChatMessageModel instance.

Implementation

ChatMessageModel({
  required this.chatUserJid,
  required this.contactType,
  required this.isItCarbonMessage,
  required this.isItSavedContact,
  required this.isMessageDeleted,
  required this.isMessageRecalled,
  required this.isMessageSentByMe,
  required this.isMessageStarred,
  required this.isSelected,
  required this.isThisAReplyMessage,
  required this.messageChatType,
  this.messageCustomField,
  required this.messageId,
  required this.messageSentTime,
  required this.messageStatus,
  required this.isMessageEdited,
  required this.messageTextContent,
  required this.messageType,
  this.metaData = const [],
  this.replyParentChatMessage,
  required this.senderNickName,
  required this.senderUserJid,
  required this.senderUserName,
  this.contactChatMessage, //
  this.mediaChatMessage, //
  this.locationChatMessage, //
  required this.topicId, //
});