withValueLessThan method
List<MoneyTransaction>
withValueLessThan({
- Currency? currency,
- List<
ExchangeRate> ? exchangeRates, - bool normalized = false,
- required Money value,
Return a filtered list of all the transactions with a value < value
.
Before filtering the transactions, this list is normalized to the currency
of the value
. Also, the result is already sorted.
Implementation
List<MoneyTransaction> withValueLessThan({
Currency? currency,
List<ExchangeRate>? exchangeRates,
bool normalized = false,
required Money value,
}) =>
_valueFilter(
comparison: (actual, target) => actual < target,
currency: currency,
exchangeRates: exchangeRates,
normalized: normalized,
value: value,
);