isInRange method

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

Returns true if the number is between min and max inclusive.

Implementation

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