tryValidate method

  1. @override
String? tryValidate()
override

Validates the form field value

Implementation

@override
String? tryValidate() {
  if (value.toLowerCase() != value) {
    if (customMessage == null) {
      return buildMessage(ValidatorStrings.lowercase, attribute);
    }
    return customMessage;
  }
  return null;
}