Checks if this value is within the given range.
range
bool withinRange<T extends num>(Range<T> range) => range.contains(this);