inRange method

int inRange(
  1. int value
)

Implementation

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