isInRange method

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

Check if the number is in the range min to max. Returns true if the number is in the range, false otherwise.

Implementation

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