CustomValidators class
This will be the validators that you can add in your text form field to have a proper form field validation.
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
-
confirmPasswordValidation(
String? confirmNewPassword, String password) → dynamic - Validates that the confirm password matches the original password.
-
emailValidation(
dynamic val) → dynamic - Validates a email.
-
mobileNumberValidation(
dynamic val, {int length = 10}) → dynamic - Validates a text field as mobile number.
-
nameValidation(
String val) → dynamic - Validates a full name input to ensure it contains valid characters and format.
-
passwordValidation(
String? val, {int? length = 6}) → dynamic - Validates a password.
-
pinValidation(
String? val, {int length = 4}) → dynamic - Validates a pin code
-
requiredNumberValidation(
dynamic val, {double? maximumNumber, double? minimumNumber}) → dynamic - Validates a number.
-
requiredValidation(
dynamic val, {String? msg}) → dynamic - Validates a text field as required.