isLengthGreaterOrEqual method Null safety

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

Checks if length of data is GREATER OR EQUAL to maxLength.

Implementation

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

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

  return length >= maxLength;
}