isInRange method

bool isInRange(
  1. num min,
  2. num max
)

Returns true if this number is in the range min..max (inclusive).

Implementation

bool isInRange(num min, num max) => this >= min && this <= max;