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
GiftCollection copyWith({
int? id,
String? name,
Sticker? Function()? icon,
int? giftCount,
dynamic extra,
int? clientId,
}) => GiftCollection(
id: id ?? this.id,
name: name ?? this.name,
icon: icon != null ? icon() : this.icon,
giftCount: giftCount ?? this.giftCount,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);