copyWith method
LinkPreviewTypeChat
copyWith({
- InviteLinkChatType? type,
- ChatPhoto? photo()?,
- bool? createsJoinRequest,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
LinkPreviewTypeChat copyWith({
InviteLinkChatType? type,
ChatPhoto? Function()? photo,
bool? createsJoinRequest,
}) => LinkPreviewTypeChat(
type: type ?? this.type,
photo: photo != null ? photo() : this.photo,
createsJoinRequest: createsJoinRequest ?? this.createsJoinRequest,
);