isLengthLessThan static method

bool isLengthLessThan(
  1. dynamic value,
  2. int maxLength
)

Checks if length of data is LESS than maxLength.

Implementation

static bool isLengthLessThan(dynamic value, int maxLength) {
  final length = _obtainDynamicLength(value);
  if (length == null) {
    return false;
  }

  return length < maxLength;
}