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
AcceptedGiftTypes copyWith({
bool? unlimitedGifts,
bool? limitedGifts,
bool? upgradedGifts,
bool? giftsFromChannels,
bool? premiumSubscription,
}) => AcceptedGiftTypes(
unlimitedGifts: unlimitedGifts ?? this.unlimitedGifts,
limitedGifts: limitedGifts ?? this.limitedGifts,
upgradedGifts: upgradedGifts ?? this.upgradedGifts,
giftsFromChannels: giftsFromChannels ?? this.giftsFromChannels,
premiumSubscription: premiumSubscription ?? this.premiumSubscription,
);