bhrott / flutter-masked-text

A masked text for Flutter.

Home Page:https://pub.dartlang.org/packages/flutter_masked_text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any CPF and CNPJ validator?

alvarolordelo opened this issue · comments

I'd like to have the CPF and CNPJ validator working on that package if it's possible, thanks!

Hi @alvarolordelo !

This package is only for masked values.
Custom validators for specific business rules are no longer part of the roadmap.

But this is a good idea for an external package! =)

Yes man, I understand.
But think: CPF and CNPJ are Brazilian rules and the purpose of this project is only to mask the input, not apply specific rules.
You can always create a custom package for it (that's one time implementation, like you said). You can create gists or (better) a external package.