You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README-updated.md
+32-13Lines changed: 32 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -376,7 +376,7 @@ see [override_form_builder_localizations_en](example/lib/override_form_builder_l
376
376
- For this group of validators, it is expected to receive a `String` as user input. Thus, if your
377
377
form widget does not guarantee a `String` input (it may receive an `Object`), you must wrap the
378
378
equivalent validator with the type validator for strings. Thus, instead of
379
-
`Validators.hasMin<Something>Chars(...)`, use `Validators.string(Validators.hasMin<Something>Chars(...))`
379
+
`Validators.hasMin<Something>Chars(...)`, use `Validators.string(Validators.hasMin<Something>Chars(...))`.
380
380
- `FormBuilderValidators.hasLowercaseChars(atLeast: n, regex: reg, errorText: 'some error')` is
381
381
equivalent to `Validators.hasMinLowercaseChars(min: n, customLowercaseCounter:(input)=>reg.allMatches(input).length, hasMinLowercaseCharsMsg:(_, __)=>'some error')`
382
382
- `FormBuilderValidators.hasNumericChars(atLeast: n, regex: reg, errorText: 'some error')` is
@@ -385,20 +385,39 @@ see [override_form_builder_localizations_en](example/lib/override_form_builder_l
385
385
equivalent to `Validators.hasMinSpecialChars(min: n, customSpecialCounter:(input)=>reg.allMatches(input).length, hasMinSpecialCharsMsg:(_, __)=>'some error')`
386
386
- `FormBuilderValidators.hasUppercaseChars(atLeast: n, regex: reg, errorText: 'some error')` is
387
387
equivalent to `Validators.hasMinUppercaseChars(min: n, customUppercaseCounter:(input)=>reg.allMatches(input).length, hasMinUppercaseCharsMsg:(_, __)=>'some error')`
388
-
389
-
<<<<<<<<<<<<<<<CONTINUETHETODO>>>>>>>>>>>>>>>
390
-
-`FormBuilderValidators.isFalse()` - requires the field's to be false.
391
-
-`FormBuilderValidators.isTrue()` - requires the field's to be true.
388
+
-`FormBuilderValidators.isFalse(errorText:'some error')` is equivalent to `Validators.isFalse(isFalseMsg: (_)=>'some error')`
389
+
-`FormBuilderValidators.isTrue(errorText:'some error')` is equivalent to `Validators.isTrue(isTrueMsg: (_)=>'some error')`
390
+
391
+
- Collection validators
392
+
-`FormBuilderValidators.containsElement([v1, v2, v3], errorText:'some error')` is
393
+
equivalent to `Validators.inList([v1, v2, v3], inListMsg: (_, __)=>'some error')`
394
+
-`FormBuilderValidators.equalLength(n, ~~allowEmpty: allowEmpty~~, errorText:'some error')` is equivalent to
0 commit comments