A function that returns an error message string to display if the input valueToValidate not pass a validation test and returns null otherwise.
valueToValidate
final String? Function(String?)? validator;