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
CollectibleItemInfo copyWith({
int? purchaseDate,
String? currency,
int? amount,
String? cryptocurrency,
int? cryptocurrencyAmount,
String? url,
dynamic extra,
int? clientId,
}) => CollectibleItemInfo(
purchaseDate: purchaseDate ?? this.purchaseDate,
currency: currency ?? this.currency,
amount: amount ?? this.amount,
cryptocurrency: cryptocurrency ?? this.cryptocurrency,
cryptocurrencyAmount: cryptocurrencyAmount ?? this.cryptocurrencyAmount,
url: url ?? this.url,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);