outside method
Returns true
if this number is outside the given range of min
(exclusive) and
max
(exclusive).
Implementation
bool outside(num min, num max) {
assert(min <= max,
'Invalid bounds: $min and $max, min cannot be greater than max');
return this < min || this > max;
}