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

UpgradedGiftBackdrop copyWith({
  int? id,
  String? name,
  UpgradedGiftBackdropColors? colors,
  UpgradedGiftAttributeRarity? rarity,
}) => UpgradedGiftBackdrop(
  id: id ?? this.id,
  name: name ?? this.name,
  colors: colors ?? this.colors,
  rarity: rarity ?? this.rarity,
);