isInRange method

bool isInRange(
  1. num minValue,
  2. num maxValue
)

Return boolean checking value is in range

Implementation

bool isInRange(num minValue, num maxValue) {
  return this >= minValue && this <= maxValue;
}