isLengthEqualTo method Null safety

bool isLengthEqualTo(
  1. dynamic value,
  2. int otherLength
)

Checks if length of data is EQUAL to maxLength.

Implementation

static bool isLengthEqualTo(dynamic value, int otherLength) {
  final length = _obtainDynamicLength(value);

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

  return length == otherLength;
}