copyWith method

ChatMember copyWith({
  1. MessageSender? memberId,
  2. int? inviterUserId,
  3. int? joinedChatDate,
  4. ChatMemberStatus? status,
  5. dynamic extra,
  6. int? clientId,
})

Implementation

ChatMember copyWith({
  MessageSender? memberId,
  int? inviterUserId,
  int? joinedChatDate,
  ChatMemberStatus? status,
  dynamic extra,
  int? clientId,
}) => ChatMember(
  memberId: memberId ?? this.memberId,
  inviterUserId: inviterUserId ?? this.inviterUserId,
  joinedChatDate: joinedChatDate ?? this.joinedChatDate,
  status: status ?? this.status,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);