copyWith method
- dynamic other
override
Implementation
@override
void copyWith(dynamic other) {
super.copyWith(other);
if (other is GroupChannel) {
lastMessage = other.lastMessage;
isSuper = other.isSuper;
isBroadcast = other.isBroadcast;
isPublic = other.isPublic;
isDistinct = other.isDistinct;
isDiscoverable = other.isDiscoverable;
isExclusive = other.isExclusive;
isAccessCodeRequired = other.isAccessCodeRequired;
unreadMessageCount = other.unreadMessageCount;
unreadMentionCount = other.unreadMentionCount;
members = List<Member>.from(other.members);
memberCount = other.memberCount;
joinedMemberCount = other.joinedMemberCount;
myPushTriggerOption = other.myPushTriggerOption;
isChatNotification = other.isChatNotification;
myMemberState = other.myMemberState;
myRole = other.myRole;
myMutedState = other.myMutedState;
myCountPreference = other.myCountPreference;
creator = other.creator;
inviter = other.inviter;
invitedAt = other.invitedAt;
joinedAt = other.joinedAt;
isHidden = other.isHidden;
hiddenState = other.hiddenState;
myLastRead = other.myLastRead;
messageOffsetTimestamp = other.messageOffsetTimestamp;
messageSurvivalSeconds = other.messageSurvivalSeconds;
}
}