copyWith method

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

Implementation

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