validatorless

Creator: coderz1093

Last updated:

0 purchases

validatorless Image
validatorless Images

Languages

Categories

Add to Cart

Description:

validatorless

Validatorless #

This package provides a means to validate text inputs on the flutter and was inspired by Yup
Validatorless in pub.dev
how to use #
dependencies:
# Use the latest version available. Any is just a placeholder
validatorless: any
copied to clipboard
TextFormField(
decoration: InputDecoration(
labelText: 'User e-mail',
),
validator: Validatorless.multiple([
Validatorless.email('The field must be an email'),
Validatorless.required('The field is obligatory')
]),
)
copied to clipboard
or use
TextFormField(
decoration: InputDecoration(
labelText: 'CPF',
),
validator: Validatorless.cpf('CPF not is valid'),
)
copied to clipboard
Validatorless options #
Validatorless.required(String)
Validatorless.email(String)
Validatorless.min(int, String)
Validatorless.max(int, String)
Validatorless.between(int, int, String)
Validatorless.number(String)
Validatorless.cpf(String)
Validatorless.cnpj(String)
Validatorless.date(String)
Validatorless.compare(TextEditingController, String)
Validatorless.numbersBetweenInterval(Double, Double, String)
Validatorless.onlyCharacters(String)
Validatorless.regex(RegExp, String)
copied to clipboard

License

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

Customer Reviews

There are no reviews.