ListExchangeRateX extension

This extension provides additional functionality for List<ExchangeRate>.

on

Methods

getExchangeRate({required Currency from, required Currency to}) ExchangeRate?
Returns the exchange rate which matches with from and to currencies. If this does not exist in this list, it returns null.
getExchangeRateSameDay({required DateTime dateTime, required Currency from, required Currency to}) ExchangeRate?
Returns the exchange rate which matches with from and to currencies and refers to the same day. If this does not exist in this list, it returns null.