Validator class

A Validator.

Constructors

Validator()

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

isAlpha(String value) → bool
isAlphaNumeric(String value) → bool
isEmail(String email) → bool
isEqualTo(dynamic value, dynamic valueToCompare) → bool
isLowercase(String value) → bool
isNumber(String value, {bool allowSymbols: true}) → dynamic
isPassword(String password, {int minLength: 4, int maxLength, bool shouldContainNumber: false, bool shouldContainSpecialChars: false, bool shouldContainCapitalLetter: false, Function reason, void isNumberPresent(bool), void isSpecialCharsPresent(bool), void isCapitalLetterPresent(bool)}) → bool
Todo: Implement reason for failure
isRequired(String value, {bool allowEmptySpaces: true}) → bool
isUppercase(String value) → bool
maxLength(String value, int maxLength) → bool
maxValue(double value, double maxValue) → bool
minLength(String value, int minLength) → bool
minValue(double value, double minValue) → bool