copyWith method
Returns a copy if this Chat.
Implementation
Chat copyWith() {
return Chat(
id,
avatar: avatar,
name: name,
members: members,
kindIndex: kindIndex,
muted: muted,
isHidden: isHidden,
directLink: directLink,
createdAt: createdAt,
updatedAt: updatedAt,
lastReads: lastReads,
lastDelivery: lastDelivery,
firstItem: firstItem,
lastItem: lastItem,
lastReadItem: lastReadItem,
unreadCount: unreadCount,
totalCount: totalCount,
ongoingCall: ongoingCall,
favoritePosition: favoritePosition,
membersCount: membersCount,
);
}