Validators class
Constructors
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
-
isAlpha(
String str) → bool -
check if the string
str
contains only letters -
isAlphanumeric(
String str) → bool -
check if the string
str
contains only letters and numbers -
isEmail(
String str) → bool -
check if the string
str
is an email -
isEquals(
String str, dynamic comparison) → bool -
check if the string
str
and comparison are equal as string -
isLowercase(
String str) → bool -
check if the string
str
is lowercase -
isName(
String str) → bool -
check if the string
str
contains only letters -
isNum(
String str) → bool -
check if the string
str
contains only number -
isPasswordStrong(
String str) → bool -
check if the string
str
contains at least 8 characters.str
must contain at least 1 uppercase letter, 1 lowercase letter, and 1 number -
isUppercase(
String str) → bool -
check if the string
str
is uppercase -
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