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