validate method

  1. @override
List<String>? validate(
  1. String? value
)
override

Implementation

@override
List<String>? validate(String? value) {
  if (value == null || value.length >= minLength) return null;

  return [
    ValidationErrorsLocalized.MIN_LENGTH
        .replaceAll("{{0}}", minLength.toString())
  ];
}