copyWith method

UserFullInfo copyWith({
  1. ChatPhoto? personalPhoto,
  2. ChatPhoto? photo,
  3. ChatPhoto? publicPhoto,
  4. bool? isBlocked,
  5. bool? canBeCalled,
  6. bool? supportsVideoCalls,
  7. bool? hasPrivateCalls,
  8. bool? hasPrivateForwards,
  9. bool? hasRestrictedVoiceAndVideoNoteMessages,
  10. bool? hasPinnedStories,
  11. bool? needPhoneNumberPrivacyException,
  12. FormattedText? bio,
  13. List<PremiumPaymentOption>? premiumGiftOptions,
  14. int? groupInCommonCount,
  15. BotInfo? botInfo,
  16. dynamic extra,
  17. 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,
    );