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