@@ -28,28 +28,28 @@ class RangeValidator<T> extends TranslatedValidator<T> {
2828
2929 /// {@macro base_validator_null_check}
3030 super .checkNullOrEmpty,
31- }) : _minValidator = MinValidator <T >(
32- min,
33- inclusive: inclusive,
34- errorText: errorText,
35- checkNullOrEmpty: checkNullOrEmpty,
36- ),
37- _maxValidator = MaxValidator <T >(
38- max,
39- inclusive: inclusive,
40- errorText: errorText,
41- checkNullOrEmpty: checkNullOrEmpty,
42- ),
43- _minLengthValidator = MinLengthValidator <T >(
44- min.toInt (),
45- errorText: errorText,
46- checkNullOrEmpty: checkNullOrEmpty,
47- ),
48- _maxLengthValidator = MaxLengthValidator <T >(
49- max.toInt (),
50- errorText: errorText,
51- checkNullOrEmpty: checkNullOrEmpty,
52- );
31+ }) : _minValidator = MinValidator <T >(
32+ min,
33+ inclusive: inclusive,
34+ errorText: errorText,
35+ checkNullOrEmpty: checkNullOrEmpty,
36+ ),
37+ _maxValidator = MaxValidator <T >(
38+ max,
39+ inclusive: inclusive,
40+ errorText: errorText,
41+ checkNullOrEmpty: checkNullOrEmpty,
42+ ),
43+ _minLengthValidator = MinLengthValidator <T >(
44+ min.toInt (),
45+ errorText: errorText,
46+ checkNullOrEmpty: checkNullOrEmpty,
47+ ),
48+ _maxLengthValidator = MaxLengthValidator <T >(
49+ max.toInt (),
50+ errorText: errorText,
51+ checkNullOrEmpty: checkNullOrEmpty,
52+ );
5353
5454 /// The minimum value of the range.
5555 final num min;
@@ -80,10 +80,12 @@ class RangeValidator<T> extends TranslatedValidator<T> {
8080 String ? validateValue (T valueCandidate) {
8181 final String ? minResult = _minValidator.validate (valueCandidate);
8282 final String ? maxResult = _maxValidator.validate (valueCandidate);
83- final String ? minLengthResult =
84- _minLengthValidator.validate (valueCandidate);
85- final String ? maxLengthResult =
86- _maxLengthValidator.validate (valueCandidate);
83+ final String ? minLengthResult = _minLengthValidator.validate (
84+ valueCandidate,
85+ );
86+ final String ? maxLengthResult = _maxLengthValidator.validate (
87+ valueCandidate,
88+ );
8789
8890 if ((minResult == null && maxResult == null ) ||
8991 (minLengthResult == null && maxLengthResult == null )) {
0 commit comments