Validatorless class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

between(int minimumLength, int maximumLength, String errorMessage) FormFieldValidator<String>
Validatorless.between(6, 10, 'password must have between 6 and 10 digits')
cnpj(String m) FormFieldValidator<String>
Validatorless.cnpj('This CNPJ is not valid')
compare(TextEditingController? controller, String message) FormFieldValidator<String>
Validatorless.compare(inputController, 'Passwords do not match')
cpf(String m) FormFieldValidator<String>
Validatorless.cpf('This CPF is not valid')
date(String errorMessage) FormFieldValidator<String>
Validatorless.date('invalid date')
email(String m) FormFieldValidator<String>
Validatorless.email('Value is not email')
max(int max, String m) FormFieldValidator<String>
Validatorless.max(4, 'field max 4')
min(int min, String m) FormFieldValidator<String>
Validatorless.min(4, 'field min 4')
multiple(List<FormFieldValidator<String>> v) FormFieldValidator<String>
Validatorless.multiple([ Validatorless.email('Value is not email') Validatorless.max(4, 'field max 4') ])
number(String m) FormFieldValidator<String>
Validatorless.number('Value not a number')
numbersBetweenInterval(double min, double max, String message) FormFieldValidator
Validatorless.numbersBetweenInterval(1, 10, 'enter a value between min and max')
onlyCharacters(String message) FormFieldValidator
Validatorless.onlyCharacters('only characters')
regex(RegExp reg, String message) FormFieldValidator
Validatorless.regex(RegExp(r'^[a-zA-Z]+$'), 'only letters')
required(String m) FormFieldValidator
Validatorless.required('filed is required')