copyWith method
GiftUpgradePreview
copyWith({
- List<
UpgradedGiftModel> ? models, - List<
UpgradedGiftSymbol> ? symbols, - List<
UpgradedGiftBackdrop> ? backdrops, - List<
GiftUpgradePrice> ? prices, - List<
GiftUpgradePrice> ? nextPrices, - dynamic extra,
- int? clientId,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
GiftUpgradePreview copyWith({
List<UpgradedGiftModel>? models,
List<UpgradedGiftSymbol>? symbols,
List<UpgradedGiftBackdrop>? backdrops,
List<GiftUpgradePrice>? prices,
List<GiftUpgradePrice>? nextPrices,
dynamic extra,
int? clientId,
}) => GiftUpgradePreview(
models: models ?? this.models,
symbols: symbols ?? this.symbols,
backdrops: backdrops ?? this.backdrops,
prices: prices ?? this.prices,
nextPrices: nextPrices ?? this.nextPrices,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);