ValidatorModel class
ValidatorModel is to determine options for validations.
- Annotations
Constructors
-
ValidatorModel({FormFieldValidator<
String?> ? customValidator, int? length, bool checkUpperCase = false, bool checkLowerCase = false, bool checkSpace = false, bool checkNumber = false, ValidatorMessageCallback? validatorCallback}) -
You can set you own custom validator with customValidator or
you can make some customization on the default validation.
const
Properties
- checkLowerCase → bool
-
Indicates whether the text should contain lower case character.
final
- checkNumber → bool
-
Indicates whether the text should contain a number.
final
- checkSpace → bool
-
Indicates whether the text can contain space or not.
final
- checkUpperCase → bool
-
Indicates whether the text should contain upper case character.
final
-
customValidator
→ FormFieldValidator<
String?> ? -
Custom validator for the text field. If it is provided,
then all fields below will be inactivated and
form will be validated to the custom validator.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int?
-
Minimum required length for the text. If not provided,
default values for email, password and name will be used.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- validatorCallback → ValidatorMessageCallback?
-
Validator callback to customize the error message for email/password/name.
final
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