copyWith method

TelegramPaymentPurposeStarGiveaway copyWith({
  1. GiveawayParameters? parameters,
  2. String? currency,
  3. int? amount,
  4. int? winnerCount,
  5. int? starCount,
})

Implementation

TelegramPaymentPurposeStarGiveaway copyWith({
  GiveawayParameters? parameters,
  String? currency,
  int? amount,
  int? winnerCount,
  int? starCount,
}) => TelegramPaymentPurposeStarGiveaway(
  parameters: parameters ?? this.parameters,
  currency: currency ?? this.currency,
  amount: amount ?? this.amount,
  winnerCount: winnerCount ?? this.winnerCount,
  starCount: starCount ?? this.starCount,
);