isBetween method

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

Checks if the number is between min and max inclusively.

Implementation

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