validar_brasileiro 0.2.0
validar_brasileiro: ^0.2.0 copied to clipboard
Brazilian document and form validators for Dart and Flutter, including CPF and alphanumeric CNPJ.
0.2.0 #
- Add
inspect/ParseResultso callers can tell empty, charset, length, repeated, checksum, and format failures apart. - Document FieldValidators skip blank input; compose with
required()for mandatory fields. - Export
collectDigits,isMaskChar, andisRepeatedDigitString. - Accept all-zero CEP (
00000000) as format-only. - Add
Phone.tryParse(allowCountryCode:)and typedPixKey.cpf/.cnpj/.email/.phone/.evp. - Add
Cpf.format/Cnpj.formatthat apply masks without checking the DV. - Trim input in
minLengthto match its dartdoc.
0.1.0 #
- Add typed Brazilian identifier parsers (
tryParse/isValid/format). - Validate numeric and alphanumeric CNPJ (IN RFB 2.229/2024).
- Cover checksum and format checks listed in the README catalog.
- Add FormField-style validators that return the first error message.