isNonNegativeLength static method

bool isNonNegativeLength(
  1. String? value
)

Implementation

static bool isNonNegativeLength(String? value) {
  return value != null && (
    value == ZERO
    || _negativeZeroRegExp.hasMatch(value) // Negative zero is considered to be equal to zero.
    || _nonNegativeLengthRegExp.hasMatch(value)
  );
}