contains method

bool contains(
  1. double value
)

Returns true if this range contains the given value.

Implementation

bool contains(double value) {
  return value >= start && value <= end;
}