ZIMConversation constructor
ZIMConversation({
- String conversationID = '',
- ZIMConversationType type = ZIMConversationType.unknown,
- String conversationName = '',
- String conversationAvatarUrl = '',
- String conversationAlias = '',
- ZIMConversationNotificationStatus notificationStatus = ZIMConversationNotificationStatus.notify,
- int unreadMessageCount = 0,
- ZIMMessage? lastMessage,
- int orderKey = 0,
- bool isPinned = false,
- int pinnedTime = 0,
- List<
ZIMMessageMentionedInfo> ? mentionedInfoList, - String draft = '',
- List<
int> ? marks, - int readMessageSeq = 0,
- bool isConversationDisabled = false,
- int selfMutedExpiredTime = 0,
- 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 ?? [];