numeric static method

String? Function(String?) numeric({
  1. String errorMessage = 'Please enter a valid number',
})

Ensures the string is a valid number.

Implementation

static String? Function(String?) numeric({
  String errorMessage = 'Please enter a valid number',
}) {
  return _build(errorMessage, (v) => v.isNumeric);
}