isLengthEqualTo static method
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;
}