between method

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

Returns true, if this num is between min and max (inclusive).

Implementation

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