copyWith method

MessageGiftedPremium copyWith({
  1. int? gifterUserId,
  2. int? receiverUserId,
  3. FormattedText? text,
  4. String? currency,
  5. int? amount,
  6. String? cryptocurrency,
  7. int? cryptocurrencyAmount,
  8. int? monthCount,
  9. int? dayCount,
  10. Sticker? sticker,
})

Implementation

MessageGiftedPremium copyWith({
  int? gifterUserId,
  int? receiverUserId,
  FormattedText? text,
  String? currency,
  int? amount,
  String? cryptocurrency,
  int? cryptocurrencyAmount,
  int? monthCount,
  int? dayCount,
  Sticker? sticker,
}) => MessageGiftedPremium(
  gifterUserId: gifterUserId ?? this.gifterUserId,
  receiverUserId: receiverUserId ?? this.receiverUserId,
  text: text ?? this.text,
  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,
);