isBetween method
Returns true if this number is between from and to inclusive.
print(0.5.isBetween(0, 10)); // true
print(10.isBetween(1, 10)); // true
Audited: 2026-06-12 11:26 EDT
Implementation
@useResult
bool isBetween(num from, final num to) => from <= this && to >= this;