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 ?? 0) >= min && (this ?? 0) <= max;