isBetween method
Returns true if the number is between min and max (inclusive).
Example:
5.5.isBetween(1.0, 10.0); // true
Implementation
bool isBetween(double min, double max) {
assert(min <= max, 'min must be less than or equal to max');
return this >= min && this <= max;
}