withValueGreaterThanOrEqualTo method
List<MoneyTransaction>
withValueGreaterThanOrEqualTo({
- 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> withValueGreaterThanOrEqualTo({
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,
);