copyWith method
Implementation
ExchangeRate copyWith({
String? fromCurrency,
String? toCurrency,
Decimal? rate,
DateTime? fetchedAt,
}) =>
ExchangeRate(
fromCurrency: fromCurrency ?? this.fromCurrency,
toCurrency: toCurrency ?? this.toCurrency,
rate: rate ?? this.rate,
fetchedAt: fetchedAt ?? this.fetchedAt,
);