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
ChatInviteLink copyWith({
String? inviteLink,
String? name,
int? creatorUserId,
int? date,
int? editDate,
int? expirationDate,
int? memberLimit,
int? memberCount,
int? pendingJoinRequestCount,
bool? createsJoinRequest,
bool? isPrimary,
bool? isRevoked,
dynamic extra,
int? clientId,
}) =>
ChatInviteLink(
inviteLink: inviteLink ?? this.inviteLink,
name: name ?? this.name,
creatorUserId: creatorUserId ?? this.creatorUserId,
date: date ?? this.date,
editDate: editDate ?? this.editDate,
expirationDate: expirationDate ?? this.expirationDate,
memberLimit: memberLimit ?? this.memberLimit,
memberCount: memberCount ?? this.memberCount,
pendingJoinRequestCount:
pendingJoinRequestCount ?? this.pendingJoinRequestCount,
createsJoinRequest: createsJoinRequest ?? this.createsJoinRequest,
isPrimary: isPrimary ?? this.isPrimary,
isRevoked: isRevoked ?? this.isRevoked,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);