flutter_formy_generic_validators library
A library that provides generic field validators for use with Formy.
These validators handle common requirements like checking length constraints, whether a value contains or does not contain specific elements, or if a field is required.
Included validators
- BetweenLengthValidator
- ContainsValidator
- ExactLengthValidator
- IsRequired
- MaxLengthValidator
- MinLengthValidator
- NotContainsValidator
- OrValidator
Part of the flutter_formy
package.
Classes
-
BetweenLengthValidator<
T> - A validator that checks if the length of a value is between minLength and maxLength.
-
ContainsValidator<
T> - A validator that checks if the value contains contain.
-
ExactLengthValidator<
T> - A validator that checks if the length of a value is equal to exactLength.
-
IsRequired<
T> - A validator that checks if the value is not null, empty nor false.
-
MaxLengthValidator<
T> - A validator that checks if the length of a value is equal or less than maxLength.
-
MinLengthValidator<
T> - A validator that checks if the length of a value is equal or greater than minLength.
-
NotContainsValidator<
T> - A validator that checks if the value NOT contains notContain.
- OrValidator
- A validator that checks if the value passes in at least one FormyValidator.