copyWith method

UpgradedGiftModel copyWith({
  1. String? name,
  2. Sticker? sticker,
  3. UpgradedGiftAttributeRarity? rarity,
  4. bool? isCrafted,
})

Implementation

UpgradedGiftModel copyWith({
  String? name,
  Sticker? sticker,
  UpgradedGiftAttributeRarity? rarity,
  bool? isCrafted,
}) =>
    UpgradedGiftModel(
      name: name ?? this.name,
      sticker: sticker ?? this.sticker,
      rarity: rarity ?? this.rarity,
      isCrafted: isCrafted ?? this.isCrafted,
    );