invertExtent method
(D?, D?)
invertExtent(
- R value
Returns the extent of values in the domain that map to the given range value.
Implementation
(D?, D?) invertExtent(R value) {
final i = _range.indexOf(value);
if (i < 0) return (null, null);
final lo = i > 0 ? _domain[i - 1] : null;
final hi = i < _domain.length ? _domain[i] : null;
return (lo, hi);
}