FieldValidator class

Constructors

FieldValidator()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

alphaNumeric({String message}) FormFieldValidator<String>
email({String message}) FormFieldValidator<String>
equalTo(dynamic value, {String message}) FormFieldValidator<String>
maxLength(int maxLength, {String message}) FormFieldValidator<String>
maxValue({double maxValue, String message}) FormFieldValidator<String>
minLength(int minLength, {String message}) FormFieldValidator<String>
minValue({double minValue, String message}) FormFieldValidator<String>
multiple(List<FormFieldValidator<String>> validators) FormFieldValidator
number({bool noSymbols: true, String message}) FormFieldValidator<String>
password({String errorMessage, int minLength: 4, int maxLength, bool shouldContainNumber: false, bool shouldContainSpecialChars: false, bool shouldContainCapitalLetter: false, Function reason, String isNumberNotPresent(), String isSpecialCharsNotPresent(), String isCapitalLetterNotPresent()}) FormFieldValidator<String>
regExp(RegExp pattern, [String errorMessage]) FormFieldValidator<String>
required({String message}) FormFieldValidator<String>
You can override the error message