number static method
Implementation
static FormFieldValidator<String> number(
{bool noSymbols = true, String? message}) {
return (fieldValue) {
if (Validator.isNumber(fieldValue, allowSymbols: noSymbols)) {
return null;
} else {
return message ?? "Field must be numbers only";
}
};
}