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