copyWith method

GiftCollection copyWith({
  1. int? id,
  2. String? name,
  3. Sticker? icon,
  4. int? giftCount,
})

Implementation

GiftCollection copyWith({
  int? id,
  String? name,
  Sticker? icon,
  int? giftCount,
}) => GiftCollection(
  id: id ?? this.id,
  name: name ?? this.name,
  icon: icon ?? this.icon,
  giftCount: giftCount ?? this.giftCount,
);