copyWith method
MessagePremiumGiftCode
copyWith(
{ - MessageSender? creatorId,
- FormattedText? text,
- bool? isFromGiveaway,
- bool? isUnclaimed,
- String? currency,
- int? amount,
- String? cryptocurrency,
- int? cryptocurrencyAmount,
- int? monthCount,
- int? dayCount,
- Sticker? sticker,
- String? code,
})
Implementation
MessagePremiumGiftCode copyWith({
MessageSender? creatorId,
FormattedText? text,
bool? isFromGiveaway,
bool? isUnclaimed,
String? currency,
int? amount,
String? cryptocurrency,
int? cryptocurrencyAmount,
int? monthCount,
int? dayCount,
Sticker? sticker,
String? code,
}) => MessagePremiumGiftCode(
creatorId: creatorId ?? this.creatorId,
text: text ?? this.text,
isFromGiveaway: isFromGiveaway ?? this.isFromGiveaway,
isUnclaimed: isUnclaimed ?? this.isUnclaimed,
currency: currency ?? this.currency,
amount: amount ?? this.amount,
cryptocurrency: cryptocurrency ?? this.cryptocurrency,
cryptocurrencyAmount: cryptocurrencyAmount ?? this.cryptocurrencyAmount,
monthCount: monthCount ?? this.monthCount,
dayCount: dayCount ?? this.dayCount,
sticker: sticker ?? this.sticker,
code: code ?? this.code,
);