ZIMConversation constructor

ZIMConversation({
  1. String conversationID = '',
  2. ZIMConversationType type = ZIMConversationType.unknown,
  3. String conversationName = '',
  4. String conversationAvatarUrl = '',
  5. String conversationAlias = '',
  6. ZIMConversationNotificationStatus notificationStatus = ZIMConversationNotificationStatus.notify,
  7. int unreadMessageCount = 0,
  8. ZIMMessage? lastMessage,
  9. int orderKey = 0,
  10. bool isPinned = false,
  11. int pinnedTime = 0,
  12. List<ZIMMessageMentionedInfo>? mentionedInfoList,
  13. String draft = '',
  14. List<int>? marks,
  15. int readMessageSeq = 0,
  16. bool isConversationDisabled = false,
  17. int selfMutedExpiredTime = 0,
  18. int messageDestructDuration = 0,
})

Implementation

ZIMConversation({
  this.conversationID = '',
  this.type = ZIMConversationType.unknown,
  this.conversationName = '',
  this.conversationAvatarUrl = '',
  this.conversationAlias = '',
  this.notificationStatus = ZIMConversationNotificationStatus.notify,
  this.unreadMessageCount = 0,
  this.lastMessage,
  this.orderKey = 0,
  this.isPinned = false,
  this.pinnedTime = 0,
  List<ZIMMessageMentionedInfo>? mentionedInfoList,
  this.draft = '',
  List<int>? marks,
  this.readMessageSeq = 0,
  this.isConversationDisabled = false,
  this.selfMutedExpiredTime = 0,
  this.messageDestructDuration = 0,
}) : mentionedInfoList = mentionedInfoList ?? [],
     marks = marks ?? [];