isLengthLessThanOrEqualTo method

bool isLengthLessThanOrEqualTo(
  1. int max
)

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 length
  • false otherwise

Implementation

bool isLengthLessThanOrEqualTo(int max) => length <= max;