inRange method Null safety
Is the current number in the range from
to to
, mutually inclusive
Implementation
bool inRange(int from, int to) {
return from <= this && this <= to;
}
Is the current number in the range from
to to
, mutually inclusive
bool inRange(int from, int to) {
return from <= this && this <= to;
}