range method
Returns a lazy iterable of elements between min and max in
O(log n + k) time.
When min or max is null, that side of the range is unbounded (note
that null cannot be used as an explicit bound for nullable element
types). includeMin and includeMax control whether elements equal to
min or max are included. When reversed is true, elements are
yielded in descending order. Returns an empty iterable if min is greater
than max.
Implementation
Iterable<E> range({
E? min,
E? max,
bool includeMin = true,
bool includeMax = true,
bool reversed = false,
}) => _map.keysInRange(
min: min,
max: max,
includeMin: includeMin,
includeMax: includeMax,
reversed: reversed,
);