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