copyWith method

  1. @override
void copyWith(
  1. dynamic other
)
override

Implementation

@override
void copyWith(dynamic other) {
  super.copyWith(other);
  if (other is GroupChannel) {
    lastMessage = other.lastMessage;
    unreadMentionCount = other.unreadMentionCount;
    unreadMessageCount = other.unreadMessageCount;
    isPublic = other.isPublic;
    isDiscoverable = other.isDiscoverable;
    accessCodeRequired = other.accessCodeRequired;
    members = List<Member>.from(other.members);
    memberCount = other.memberCount;
    joinedMemberCount = other.joinedMemberCount;
    joinedAt = other.joinedAt;
    myPushTriggerOption = other.myPushTriggerOption;
    myMemberState = other.myMemberState;
    myRole = other.myRole;
    myMutedState = other.myMutedState;
    inviter = other.inviter;
    invitedAt = other.invitedAt;
    isHidden = other.isHidden;
    hiddenState = other.hiddenState;
    myLastRead = other.myLastRead;
    messageOffsetTimestamp = other.messageOffsetTimestamp;
    messageSurvivalSeconds = other.messageSurvivalSeconds;
  }
}