copyWith method
Implementation
ConversationItemModel copyWith({
ChatUIKitProfile? profile,
Message? lastMessage,
int? unreadCount,
bool? pinned,
bool? noDisturb,
bool? hasMention,
Map<String, String>? attributes,
}) {
return ConversationItemModel(
profile: profile ?? this.profile,
lastMessage: lastMessage ?? this.lastMessage,
unreadCount: unreadCount ?? this.unreadCount,
pinned: pinned ?? this.pinned,
noDisturb: noDisturb ?? this.noDisturb,
hasMention: hasMention ?? this.hasMention,
attributes: attributes ?? this.attributes,
);
}