StringValidator
Constructors
- StringValidator([String _fieldName = 'value'])
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
-
alphanumeric(
) → StringValidator - Must be alphanumeric
-
and(
Validator< String> other) → Validator<String> -
Chain validators
inherited
-
email(
) → StringValidator - Must be a valid email
-
map<
R> (R transform(String)) → Validator< R> -
Transform the validated value
inherited
-
matches(
RegExp pattern, [String? message]) → StringValidator - Must match pattern
-
maxLength(
int max) → StringValidator - Maximum length
-
minLength(
int min) → StringValidator - Minimum length
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notEmpty(
) → StringValidator - Must not be empty
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
dynamic value) → ValidationResult< String> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited