copyWith method

CollectibleItemInfo copyWith({
  1. int? purchaseDate,
  2. String? currency,
  3. int? amount,
  4. String? cryptocurrency,
  5. int? cryptocurrencyAmount,
  6. String? url,
  7. dynamic extra,
  8. int? clientId,
})

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,
);