Whether a value is within the selection.
bool contains(double value) => value >= min && value <= max;