Validators 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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
compose(
List< FormFieldValidator< validators) → FormFieldValidator<String> >String> - Combines multiple validators — returns the first error found.
-
email(
[String? message]) → FormFieldValidator< String> - Validates email format.
-
match(
String getOther(), [String? message]) → FormFieldValidator< String> - Validates that the value matches another field's value.
-
maxLength(
int max, [String? message]) → FormFieldValidator< String> - Validates maximum character length.
-
minLength(
int min, [String? message]) → FormFieldValidator< String> - Validates minimum character length.
-
numeric(
[String? message]) → FormFieldValidator< String> - Validates that the value is numeric.
-
password(
{int minLength = 8, bool requireUppercase = false, bool requireSymbol = false, String? message}) → FormFieldValidator< String> - Validates password strength.
-
phone(
[String? message]) → FormFieldValidator< String> - Validates phone number (international format).
-
required(
[String? message]) → FormFieldValidator< String> - Validates that the field is not empty.
-
url(
[String? message]) → FormFieldValidator< String> - Validates URL format.