call method

String? call(
  1. String? cnpj
)

Returns null if cnpj is well-formed; otherwise, the erro message.

Implementation

String? call(String? cnpj) {
  if (cnpj == null) return null;
  return CnpjVal(cnpj).isOk ? null : _malformed;
}