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