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