isBetween method

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

Checks if the integer is between min and max inclusively.

Implementation

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