copyWith method

GiftUpgradeVariants copyWith({
  1. List<UpgradedGiftModel>? models,
  2. List<UpgradedGiftSymbol>? symbols,
  3. List<UpgradedGiftBackdrop>? backdrops,
  4. dynamic extra,
  5. 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

GiftUpgradeVariants copyWith({
  List<UpgradedGiftModel>? models,
  List<UpgradedGiftSymbol>? symbols,
  List<UpgradedGiftBackdrop>? backdrops,
  dynamic extra,
  int? clientId,
}) => GiftUpgradeVariants(
  models: models ?? this.models,
  symbols: symbols ?? this.symbols,
  backdrops: backdrops ?? this.backdrops,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);