copyWith method
UpgradedGift
copyWith({
- int? id,
- int? regularGiftId,
- int? publisherChatId,
- String? title,
- String? name,
- int? number,
- int? totalUpgradedCount,
- int? maxUpgradedCount,
- bool? isBurned,
- bool? isCrafted,
- bool? isPremium,
- bool? isThemeAvailable,
- int? usedThemeChatId,
- MessageSender? hostId,
- MessageSender? ownerId,
- String? ownerAddress,
- String? ownerName,
- String? giftAddress,
- UpgradedGiftModel? model,
- UpgradedGiftSymbol? symbol,
- UpgradedGiftBackdrop? backdrop,
- UpgradedGiftOriginalDetails? originalDetails,
- UpgradedGiftColors? colors,
- GiftResaleParameters? resaleParameters,
- bool? canSendPurchaseOffer,
- int? craftProbabilityPerMille,
- String? valueCurrency,
- int? valueAmount,
- int? valueUsdAmount,
Implementation
UpgradedGift copyWith({
int? id,
int? regularGiftId,
int? publisherChatId,
String? title,
String? name,
int? number,
int? totalUpgradedCount,
int? maxUpgradedCount,
bool? isBurned,
bool? isCrafted,
bool? isPremium,
bool? isThemeAvailable,
int? usedThemeChatId,
MessageSender? hostId,
MessageSender? ownerId,
String? ownerAddress,
String? ownerName,
String? giftAddress,
UpgradedGiftModel? model,
UpgradedGiftSymbol? symbol,
UpgradedGiftBackdrop? backdrop,
UpgradedGiftOriginalDetails? originalDetails,
UpgradedGiftColors? colors,
GiftResaleParameters? resaleParameters,
bool? canSendPurchaseOffer,
int? craftProbabilityPerMille,
String? valueCurrency,
int? valueAmount,
int? valueUsdAmount,
}) => UpgradedGift(
id: id ?? this.id,
regularGiftId: regularGiftId ?? this.regularGiftId,
publisherChatId: publisherChatId ?? this.publisherChatId,
title: title ?? this.title,
name: name ?? this.name,
number: number ?? this.number,
totalUpgradedCount: totalUpgradedCount ?? this.totalUpgradedCount,
maxUpgradedCount: maxUpgradedCount ?? this.maxUpgradedCount,
isBurned: isBurned ?? this.isBurned,
isCrafted: isCrafted ?? this.isCrafted,
isPremium: isPremium ?? this.isPremium,
isThemeAvailable: isThemeAvailable ?? this.isThemeAvailable,
usedThemeChatId: usedThemeChatId ?? this.usedThemeChatId,
hostId: hostId ?? this.hostId,
ownerId: ownerId ?? this.ownerId,
ownerAddress: ownerAddress ?? this.ownerAddress,
ownerName: ownerName ?? this.ownerName,
giftAddress: giftAddress ?? this.giftAddress,
model: model ?? this.model,
symbol: symbol ?? this.symbol,
backdrop: backdrop ?? this.backdrop,
originalDetails: originalDetails ?? this.originalDetails,
colors: colors ?? this.colors,
resaleParameters: resaleParameters ?? this.resaleParameters,
canSendPurchaseOffer: canSendPurchaseOffer ?? this.canSendPurchaseOffer,
craftProbabilityPerMille:
craftProbabilityPerMille ?? this.craftProbabilityPerMille,
valueCurrency: valueCurrency ?? this.valueCurrency,
valueAmount: valueAmount ?? this.valueAmount,
valueUsdAmount: valueUsdAmount ?? this.valueUsdAmount,
);