KatValidators class
Common field validators, usable directly or through haveUnicode as a FormFieldValidator.
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
-
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
-
haveUnicode(
{String errorText = "This field have unicode."}) → FormFieldValidator< String> - A FormFieldValidator that rejects unicode input, for fields that must stay ASCII-only (e.g. usernames, codes).
-
isEmail(
String? str) → bool -
Returns
trueifstrlooks like a valid email address. -
isUnicode(
String? str) → bool -
Returns
trueifstrcontains any character outside the printable ASCII range (code unit above 0x7E), e.g. Vietnamese diacritics. -
isValidDatetimeUtc(
String? str) → bool -
Returns
trueifstrparses to a UTC date/time. -
isValidPassword(
String? str) → bool -
Returns
trueifstris at least 6 characters long and contains an uppercase letter, a lowercase letter, and at least one digit or symbol.