isBetween method

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

Whether this value is between min and max (inclusive).

Implementation

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