Validator class

A Validator.

Constructors

Validator()

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

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, bool shouldContainSmallLetter = false, Function? reason, void isNumberPresent(bool)?, void isSpecialCharsPresent(bool)?, void isCapitalLetterPresent(bool)?, void isSmallLetterPresent(bool)?, void isMaxLengthFailed()?, void isMinLengthFailed()?}) bool
Todo: Implement reason for failure For Validated passwords strings
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