validatorless 0.0.2 validatorless: ^0.0.2 copied to clipboard
Validate fields
Validatorless #
This package provides a means to validate text inputs on the flutter and was inspired by Yup
how to use #
dependencies:
validatorless:
TextFormField(
decoration: InputDecoration(
labelText: 'User e-mail',
),
validator: Validatorless.multiple([
Validatorless.email('The field must be an email')
Validatorless.required('The field is obligatory')
]),
)
Validatorless functions #
Validatorless.required(String)
Validatorless.email(String)
Validatorless.min(Number, String)
Validatorless.max(Number, String)
Validatorless.number(String)