numeric static method
Numeric only
Implementation
static String? numeric(String? value, [String? message]) {
if (value == null || value.isEmpty) return null;
if (double.tryParse(value) == null) {
return message ?? 'Please enter a valid number';
}
return null;
}