copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
PremiumGiveawayParameters copyWith({
int? boostedChatId,
List<int>? additionalChatIds,
int? winnersSelectionDate,
bool? onlyNewMembers,
bool? hasPublicWinners,
List<String>? countryCodes,
String? prizeDescription,
}) =>
PremiumGiveawayParameters(
boostedChatId: boostedChatId ?? this.boostedChatId,
additionalChatIds: additionalChatIds ?? this.additionalChatIds,
winnersSelectionDate: winnersSelectionDate ?? this.winnersSelectionDate,
onlyNewMembers: onlyNewMembers ?? this.onlyNewMembers,
hasPublicWinners: hasPublicWinners ?? this.hasPublicWinners,
countryCodes: countryCodes ?? this.countryCodes,
prizeDescription: prizeDescription ?? this.prizeDescription,
);