isNotBetween method

  1. @useResult
bool isNotBetween(
  1. num from,
  2. num to
)

Returns true if this number is NOT between from and to inclusive.

print(0.5.isBetween(0, 10)); // true
print(10.isBetween(1, 10)); // true

Implementation

@useResult
bool isNotBetween(num from, final num to) => !isBetween(from, to);