Google is committed to advancing racial equity for Black communities. See how.

validate method

void validate (T value)

Implementation

void validate(T value) {
  if (value == null) {
    _throwIfNotNullable(nullable);
    return;
  }
  _throwIfExceedsLimit(value.length, maybeElementCount);
}