isLengthGreaterThan method Null safety

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

Checks if length of data is GREATER than maxLength.

Implementation

static bool isLengthGreaterThan(dynamic value, int maxLength) {
  final length = _obtainDynamicLength(value);

  if (length == null) {
    return false;
  }

  return length > maxLength;
}