validar_brasileiro 0.2.0 copy "validar_brasileiro: ^0.2.0" to clipboard
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 / ParseResult so 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, and isRepeatedDigitString.
  • Accept all-zero CEP (00000000) as format-only.
  • Add Phone.tryParse(allowCountryCode:) and typed PixKey.cpf / .cnpj / .email / .phone / .evp.
  • Add Cpf.format / Cnpj.format that apply masks without checking the DV.
  • Trim input in minLength to 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.
1
likes
160
points
110
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Brazilian document and form validators for Dart and Flutter, including CPF and alphanumeric CNPJ.

Repository (GitHub)
View/report issues

Topics

#brazil #cpf #cnpj #validation #flutter

License

MIT (license)

More

Packages that depend on validar_brasileiro