copyWith method
UserFullInfo
copyWith({
- ChatPhoto? personalPhoto,
- ChatPhoto? photo,
- ChatPhoto? publicPhoto,
- int? communityId,
- BlockList? blockList,
- bool? canBeCalled,
- bool? supportsVideoCalls,
- bool? hasPrivateCalls,
- bool? hasPrivateForwards,
- bool? hasRestrictedVoiceAndVideoNoteMessages,
- bool? hasPostedToProfileStories,
- bool? hasSponsoredMessagesEnabled,
- bool? needPhoneNumberPrivacyException,
- bool? setChatBackground,
- bool? usesUnofficialApp,
- FormattedText? bio,
- Birthdate? birthdate,
- int? personalChatId,
- int? giftCount,
- int? groupInCommonCount,
- int? incomingPaidMessageStarCount,
- int? outgoingPaidMessageStarCount,
- GiftSettings? giftSettings,
- BotVerification? botVerification,
- ProfileTab? mainProfileTab,
- Audio? firstProfileAudio,
- UserRating? rating,
- UserRating? pendingRating,
- int? pendingRatingDate,
- FormattedText? note,
- BusinessInfo? businessInfo,
- BotInfo? botInfo,
Implementation
UserFullInfo copyWith({
ChatPhoto? personalPhoto,
ChatPhoto? photo,
ChatPhoto? publicPhoto,
int? communityId,
BlockList? blockList,
bool? canBeCalled,
bool? supportsVideoCalls,
bool? hasPrivateCalls,
bool? hasPrivateForwards,
bool? hasRestrictedVoiceAndVideoNoteMessages,
bool? hasPostedToProfileStories,
bool? hasSponsoredMessagesEnabled,
bool? needPhoneNumberPrivacyException,
bool? setChatBackground,
bool? usesUnofficialApp,
FormattedText? bio,
Birthdate? birthdate,
int? personalChatId,
int? giftCount,
int? groupInCommonCount,
int? incomingPaidMessageStarCount,
int? outgoingPaidMessageStarCount,
GiftSettings? giftSettings,
BotVerification? botVerification,
ProfileTab? mainProfileTab,
Audio? firstProfileAudio,
UserRating? rating,
UserRating? pendingRating,
int? pendingRatingDate,
FormattedText? note,
BusinessInfo? businessInfo,
BotInfo? botInfo,
}) => UserFullInfo(
personalPhoto: personalPhoto ?? this.personalPhoto,
photo: photo ?? this.photo,
publicPhoto: publicPhoto ?? this.publicPhoto,
communityId: communityId ?? this.communityId,
blockList: blockList ?? this.blockList,
canBeCalled: canBeCalled ?? this.canBeCalled,
supportsVideoCalls: supportsVideoCalls ?? this.supportsVideoCalls,
hasPrivateCalls: hasPrivateCalls ?? this.hasPrivateCalls,
hasPrivateForwards: hasPrivateForwards ?? this.hasPrivateForwards,
hasRestrictedVoiceAndVideoNoteMessages:
hasRestrictedVoiceAndVideoNoteMessages ??
this.hasRestrictedVoiceAndVideoNoteMessages,
hasPostedToProfileStories:
hasPostedToProfileStories ?? this.hasPostedToProfileStories,
hasSponsoredMessagesEnabled:
hasSponsoredMessagesEnabled ?? this.hasSponsoredMessagesEnabled,
needPhoneNumberPrivacyException:
needPhoneNumberPrivacyException ?? this.needPhoneNumberPrivacyException,
setChatBackground: setChatBackground ?? this.setChatBackground,
usesUnofficialApp: usesUnofficialApp ?? this.usesUnofficialApp,
bio: bio ?? this.bio,
birthdate: birthdate ?? this.birthdate,
personalChatId: personalChatId ?? this.personalChatId,
giftCount: giftCount ?? this.giftCount,
groupInCommonCount: groupInCommonCount ?? this.groupInCommonCount,
incomingPaidMessageStarCount:
incomingPaidMessageStarCount ?? this.incomingPaidMessageStarCount,
outgoingPaidMessageStarCount:
outgoingPaidMessageStarCount ?? this.outgoingPaidMessageStarCount,
giftSettings: giftSettings ?? this.giftSettings,
botVerification: botVerification ?? this.botVerification,
mainProfileTab: mainProfileTab ?? this.mainProfileTab,
firstProfileAudio: firstProfileAudio ?? this.firstProfileAudio,
rating: rating ?? this.rating,
pendingRating: pendingRating ?? this.pendingRating,
pendingRatingDate: pendingRatingDate ?? this.pendingRatingDate,
note: note ?? this.note,
businessInfo: businessInfo ?? this.businessInfo,
botInfo: botInfo ?? this.botInfo,
);