validate method
A function that returns an error message string
to display if the input s
not pass a validation
test and returns null otherwise.
Implementation
@override
String? validate(String input) => input.contains(RegExp("(?:[a-z])"))
? null
: "Please enter a value that contains lowercase letters.";