copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
ChatInviteLinkMember copyWith({
int? userId,
int? joinedChatDate,
bool? viaChatFolderInviteLink,
int? approverUserId,
}) =>
ChatInviteLinkMember(
userId: userId ?? this.userId,
joinedChatDate: joinedChatDate ?? this.joinedChatDate,
viaChatFolderInviteLink:
viaChatFolderInviteLink ?? this.viaChatFolderInviteLink,
approverUserId: approverUserId ?? this.approverUserId,
);