cpf_util

Creator: coderz1093

Last updated:

0 purchases

cpf_util Image
cpf_util Images

Languages

Categories

Add to Cart

Description:

cpf util

CPF Util #
A Dart package to generate, validate and format Brazilian's CPF in an easy way.





Use cases #
You can validate data in a TextField, or even format it without any effort, inside a Flutter application.
Also, you can generate valid CPFs, for testing purposes.
Usage #
void main() {
final cpf = CPFUtil();

// This will generate 100 valid CPF
for (int i = 0; i < 100; i++) {
print(cpf.generate());
}

// This will validate a given CPF (Must be a String)
print(cpf.validate('352.753.028-27')); // -> true

// This will format a given CPF (Must be a String)
print(cpf.format('35275302827')); // -> 352.753.028-27
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.