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