Skip to content

Commit e8102f5

Browse files
committed
Revert to dateString
1 parent 5f7c10c commit e8102f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/form_builder_validators.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ class FormBuilderValidators {
356356
: null;
357357

358358
/// [FormFieldValidator] that requires the field's value to be a valid date string.
359-
static FormFieldValidator<String> date({
359+
static FormFieldValidator<String> dateString({
360360
String? errorText,
361361
}) =>
362362
(valueCandidate) => true == valueCandidate?.isNotEmpty &&
@@ -373,10 +373,10 @@ class FormBuilderValidators {
373373
return compose<String>(
374374
[
375375
minDate.isNotEmpty
376-
? date(errorText: errorText)
376+
? dateString(errorText: errorText)
377377
: (valueCandidate) => null,
378378
maxDate.isNotEmpty
379-
? date(errorText: errorText)
379+
? dateString(errorText: errorText)
380380
: (valueCandidate) => null,
381381
(valueCandidate) {
382382
if (valueCandidate == null || valueCandidate.isEmpty) {

0 commit comments

Comments
 (0)