AppValidators class
A collection of reusable validation methods for forms.
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
-
confirmPassword(
String? password, String? confirmPassword) → String? - Validator for confirming a password.
-
email(
String? value) → String? - Validator for email fields.
-
notEmpty(
String? value) → String? - Validator for non-empty fields.
-
password(
String? value, {int minLength = 6}) → String? - Validator for password fields. Requires a minimum length (default is 6).