FieldValidator class

Constructors

FieldValidator()

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

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, bool shouldContainSmallLetter = false, Function? reason, String onNumberNotPresent()?, String onSpecialCharsNotPresent()?, String onCapitalLetterNotPresent()?}) FormFieldValidator<String>
regExp(RegExp pattern, [String? errorMessage]) FormFieldValidator<String>
required({String? message}) FormFieldValidator<String>
You can override the error message