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
ChatInviteLinkCount copyWith({
int? userId,
int? inviteLinkCount,
int? revokedInviteLinkCount,
}) =>
ChatInviteLinkCount(
userId: userId ?? this.userId,
inviteLinkCount: inviteLinkCount ?? this.inviteLinkCount,
revokedInviteLinkCount:
revokedInviteLinkCount ?? this.revokedInviteLinkCount,
);