copyWith method
UserFullInfo
copyWith({
- ChatPhoto? personalPhoto()?,
- ChatPhoto? photo()?,
- ChatPhoto? publicPhoto()?,
- BlockList? blockList()?,
- bool? canBeCalled,
- bool? supportsVideoCalls,
- bool? hasPrivateCalls,
- bool? hasPrivateForwards,
- bool? hasRestrictedVoiceAndVideoNoteMessages,
- bool? hasPinnedStories,
- bool? needPhoneNumberPrivacyException,
- bool? setChatBackground,
- FormattedText? bio()?,
- int? groupInCommonCount,
- BusinessInfo? businessInfo()?,
- BotInfo? botInfo()?,
- 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
UserFullInfo copyWith({
ChatPhoto? Function()? personalPhoto,
ChatPhoto? Function()? photo,
ChatPhoto? Function()? publicPhoto,
BlockList? Function()? blockList,
bool? canBeCalled,
bool? supportsVideoCalls,
bool? hasPrivateCalls,
bool? hasPrivateForwards,
bool? hasRestrictedVoiceAndVideoNoteMessages,
bool? hasPinnedStories,
bool? needPhoneNumberPrivacyException,
bool? setChatBackground,
FormattedText? Function()? bio,
List<PremiumPaymentOption>? premiumGiftOptions,
int? groupInCommonCount,
BusinessInfo? Function()? businessInfo,
BotInfo? Function()? botInfo,
dynamic extra,
int? clientId,
}) =>
UserFullInfo(
personalPhoto:
personalPhoto != null ? personalPhoto() : this.personalPhoto,
photo: photo != null ? photo() : this.photo,
publicPhoto: publicPhoto != null ? publicPhoto() : this.publicPhoto,
blockList: blockList != null ? blockList() : this.blockList,
canBeCalled: canBeCalled ?? this.canBeCalled,
supportsVideoCalls: supportsVideoCalls ?? this.supportsVideoCalls,
hasPrivateCalls: hasPrivateCalls ?? this.hasPrivateCalls,
hasPrivateForwards: hasPrivateForwards ?? this.hasPrivateForwards,
hasRestrictedVoiceAndVideoNoteMessages:
hasRestrictedVoiceAndVideoNoteMessages ??
this.hasRestrictedVoiceAndVideoNoteMessages,
hasPinnedStories: hasPinnedStories ?? this.hasPinnedStories,
needPhoneNumberPrivacyException: needPhoneNumberPrivacyException ??
this.needPhoneNumberPrivacyException,
setChatBackground: setChatBackground ?? this.setChatBackground,
bio: bio != null ? bio() : this.bio,
premiumGiftOptions: premiumGiftOptions ?? this.premiumGiftOptions,
groupInCommonCount: groupInCommonCount ?? this.groupInCommonCount,
businessInfo: businessInfo != null ? businessInfo() : this.businessInfo,
botInfo: botInfo != null ? botInfo() : this.botInfo,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);