File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,18 @@ Available built-in use-case validators include:
116
116
- ` FormBuilderValidators.bic() ` - requires the field's to be an valid BIC.
117
117
- ` FormBuilderValidators.isbn() ` - requires the field's to be an valid ISBN.
118
118
119
+ Available extension methods used for chaining validators:
120
+
121
+ - ` FormBuilderValidator.and() ` - Combines the current validator with another validator using logical AND.
122
+ - ` FormBuilderValidator.or() ` - Combines the current validator with another validator using logical OR.
123
+ - ` FormBuilderValidator.not() ` - Negates the current validator.
124
+ - ` FormBuilderValidator.when() ` - Adds a condition to apply the validator only if the condition is met.
125
+ - ` FormBuilderValidator.unless() ` - Adds a condition to apply the validator only if the condition is not met.
126
+ - ` FormBuilderValidator.transform() ` - Transforms the value before applying the validator.
127
+ - ` FormBuilderValidator.skipWhen() ` - Skips the validator if the condition is met.
128
+ - ` FormBuilderValidator.log() ` - Logs the value during the validation process.
129
+ - ` FormBuilderValidator.withMessage() ` - Overrides the error message of the current validator.
130
+
119
131
### Supported languages
120
132
121
133
Validators support default ` errorText ` messages in these languages:
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ extension FormFieldValidatorExtensions<T> on FormFieldValidator<T> {
12
12
return FormBuilderValidators .or ([this , other]);
13
13
}
14
14
15
- /// Combines the current validator with another validator using logical XOR .
15
+ /// Negates the current validator.
16
16
FormFieldValidator <T > not () {
17
17
return FormBuilderValidators .notEqual (this );
18
18
}
You can’t perform that action at this time.
0 commit comments