isLengthLessThanOrEqualTo method
Checks if length of double value is LESS OR EQUAL to max.
Parameters
max
: The maximum length
Returns
true
if the length of this value is less than or equal to the maximum lengthfalse
otherwise
Implementation
bool isLengthLessThanOrEqualTo(int max) => length <= max;