uppercase static method
FormFieldValidator that requires the field's value to be uppercase.
Parameters:
errorText
The error message when the value is not uppercase.checkNullOrEmpty
Whether to check for null or empty values.
Implementation
static FormFieldValidator<String> uppercase({
String? errorText,
bool checkNullOrEmpty = true,
}) => UppercaseValidator(
errorText: errorText,
checkNullOrEmpty: checkNullOrEmpty,
).validate;