File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -356,7 +356,7 @@ class FormBuilderValidators {
356
356
: null ;
357
357
358
358
/// [FormFieldValidator] that requires the field's value to be a valid date string.
359
- static FormFieldValidator <String > date ({
359
+ static FormFieldValidator <String > dateString ({
360
360
String ? errorText,
361
361
}) =>
362
362
(valueCandidate) => true == valueCandidate? .isNotEmpty &&
@@ -373,10 +373,10 @@ class FormBuilderValidators {
373
373
return compose <String >(
374
374
[
375
375
minDate.isNotEmpty
376
- ? date (errorText: errorText)
376
+ ? dateString (errorText: errorText)
377
377
: (valueCandidate) => null ,
378
378
maxDate.isNotEmpty
379
- ? date (errorText: errorText)
379
+ ? dateString (errorText: errorText)
380
380
: (valueCandidate) => null ,
381
381
(valueCandidate) {
382
382
if (valueCandidate == null || valueCandidate.isEmpty) {
You can’t perform that action at this time.
0 commit comments