copyWith method
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,
})
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,
);