copyWith method
ChatInviteLinkInfo
copyWith({
- int? chatId,
- int? accessibleFor,
- InviteLinkChatType? type,
- String? title,
- ChatPhotoInfo? photo()?,
- int? accentColorId,
- String? description,
- int? memberCount,
- List<
int> ? memberUserIds, - bool? createsJoinRequest,
- bool? isPublic,
- bool? isVerified,
- bool? isScam,
- bool? isFake,
- dynamic extra,
- 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
ChatInviteLinkInfo copyWith({
int? chatId,
int? accessibleFor,
InviteLinkChatType? type,
String? title,
ChatPhotoInfo? Function()? photo,
int? accentColorId,
String? description,
int? memberCount,
List<int>? memberUserIds,
bool? createsJoinRequest,
bool? isPublic,
bool? isVerified,
bool? isScam,
bool? isFake,
dynamic extra,
int? clientId,
}) =>
ChatInviteLinkInfo(
chatId: chatId ?? this.chatId,
accessibleFor: accessibleFor ?? this.accessibleFor,
type: type ?? this.type,
title: title ?? this.title,
photo: photo != null ? photo() : this.photo,
accentColorId: accentColorId ?? this.accentColorId,
description: description ?? this.description,
memberCount: memberCount ?? this.memberCount,
memberUserIds: memberUserIds ?? this.memberUserIds,
createsJoinRequest: createsJoinRequest ?? this.createsJoinRequest,
isPublic: isPublic ?? this.isPublic,
isVerified: isVerified ?? this.isVerified,
isScam: isScam ?? this.isScam,
isFake: isFake ?? this.isFake,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);