copyWith method

CryptoModel copyWith({
  1. num? amount,
  2. String? currency,
})

Implementation

CryptoModel copyWith({num? amount, String? currency}) {
  return CryptoModel(
    amount: amount ?? this.amount,
    currency: currency ?? this.currency,
  );
}