copyWith method

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

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

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