copyWith method

LiveGiftModel copyWith({
  1. int? giftId,
  2. int? price,
  3. String? name,
  4. String? icon,
  5. bool? isShakeEgg,
  6. String? description,
  7. String? animation,
  8. bool? shakeConn,
  9. int? giftType,
  10. int? propsType,
  11. int? propsId,
  12. int? propsCount,
})

Implementation

LiveGiftModel copyWith({
  int? giftId,
  int? price,
  String? name,
  String? icon,
  bool? isShakeEgg,
  String? description,
  String? animation,
  bool? shakeConn,
  int? giftType,
  int? propsType,
  int? propsId,
  int? propsCount,
}) =>
    LiveGiftModel(
      giftId: giftId ?? this.giftId,
      price: price ?? this.price,
      name: name ?? this.name,
      icon: icon ?? this.icon,
      isShakeEgg: isShakeEgg ?? this.isShakeEgg,
      description: description ?? this.description,
      animation: animation ?? this.animation,
      shakeConn: shakeConn ?? this.shakeConn,
      giftType: giftType ?? this.giftType,
      propsType: propsType ?? this.propsType,
      propsId: propsId ?? this.propsId,
      propsCount: propsCount ?? this.propsCount,
    );