FancyValidator class
A utility class providing static methods to create validation functions for form fields.
The validation functions return an error message if the input value does not satisfy the validation rule,
or null
if the input is valid.
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
-
minLength(
String value, {String? errorMessage, int minLength = 8}) → String? Function() - Returns a validation function that checks if the input value meets a minimum length requirement.
-
notEmpty(
String value, {String? errorMessage}) → String? Function() - Returns a validation function that checks if the input value is not empty.
-
validCPF(
String value, {String? errorMessage}) → String? Function() - Returns a validation function that checks if the input value is a valid CPF (Brazilian individual taxpayer registry).
-
validEmail(
String value, {String? errorMessage}) → String? Function() - Returns a validation function that checks if the input value is a valid email address.