copyWith method

UserFullInfo copyWith({
  1. ChatPhoto? personalPhoto,
  2. ChatPhoto? photo,
  3. ChatPhoto? publicPhoto,
  4. int? communityId,
  5. BlockList? blockList,
  6. bool? canBeCalled,
  7. bool? supportsVideoCalls,
  8. bool? hasPrivateCalls,
  9. bool? hasPrivateForwards,
  10. bool? hasRestrictedVoiceAndVideoNoteMessages,
  11. bool? hasPostedToProfileStories,
  12. bool? hasSponsoredMessagesEnabled,
  13. bool? needPhoneNumberPrivacyException,
  14. bool? setChatBackground,
  15. bool? usesUnofficialApp,
  16. FormattedText? bio,
  17. Birthdate? birthdate,
  18. int? personalChatId,
  19. int? giftCount,
  20. int? groupInCommonCount,
  21. int? incomingPaidMessageStarCount,
  22. int? outgoingPaidMessageStarCount,
  23. GiftSettings? giftSettings,
  24. BotVerification? botVerification,
  25. ProfileTab? mainProfileTab,
  26. Audio? firstProfileAudio,
  27. UserRating? rating,
  28. UserRating? pendingRating,
  29. int? pendingRatingDate,
  30. FormattedText? note,
  31. BusinessInfo? businessInfo,
  32. 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,
);