StraingValidationFunctions 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
Static Methods
-
equals(String? checkValue, String compareValue, {String? errorMessage})
→ String?
-
Checks that
checkValue
equals compareValue
.
-
inList(String? checkValue, List<String> list, {String? errorMessage})
→ String?
-
Checks if
checkValue
is in the provided list
-
isAnEmail(String? checkValue, {String? errorMessage})
→ String?
-
Checks if
checkValue
can be matched by the regular expression emailRegExp
-
isDateTime(String? checkValue, {String dateFormat = "dd/MM/yyyy", bool parseLoose = false, dynamic errorMessage})
→ String?
-
Checks that
checkValue
can be turned into a datetime.
-
isNumeric(String? checkValue, {String? errorMessage})
→ String?
-
Checks that
checkValue
can be turned into a number
-
lengthEq(String? checkValue, int eq, {String? errorMessage})
→ String?
-
Checks that the length of
checkValue
is equal to eq
-
lengthGt(String? checkValue, int gt, {String? errorMessage})
→ String?
-
Checks that the length of
checkValue
is greater than then gt
-
lengthGtEq(String? checkValue, int gtEq, {String? errorMessage})
→ String?
-
Checks that the length of
checkValue
is greater then or equal to gtEq
-
lengthLt(String? checkValue, int lt, {String? errorMessage})
→ String?
-
Checks that the length of
checkValue
is less then lt
-
lengthLtEq(String? checkValue, int ltEq, {String? errorMessage})
→ String?
-
Checks that the length of
checkValue
is less then or equal to ltEq
-
matches(String? checkValue, String pattern, {String? errorMessage})
→ String?
-
Checks if
checkValue
can be matched by the regular expression pattern
-
notEmpty(String? checkValue, {String? errorMessage})
→ String?
-
Checks that
checkValue
is not equal to ""
.
-
notEquals(String? checkValue, String compareValue, {String? errorMessage})
→ String?
-
Checks that
checkValue
does not equal compareValue
.
-
notInList(String? checkValue, List<String> list, {String? errorMessage})
→ String?
-
Checks if
checkValue
is not in the provided list
-
notNull(String? checkValue, {String? errorMessage})
→ String?
-
Checks that
checkValue
is not null.
-
required(String? checkValue, {String? nullErrorMessage, String? emptyErrorMessage})
→ String?
-
Checks that the string is not null then checks if the string is empty