int inRange(int value) { final index = _rangeProportion.indexWhere( (element) => element.inRange(value), ); return index == -1 ? 0 : index; }