number static method
Validates a numeric value.
Implementation
static String? number(String? value,
{String message = 'Enter a valid number'}) {
if (value == null || value.trim().isEmpty) return null;
return Validators.isNumber(value) ? null : message;
}