isNumeric function

bool isNumeric (String input, { bool no_symbols })

check if the string input contains only numbers

Implementation

bool isNumeric(String input, {bool no_symbols}) {
  if (no_symbols) {
    return _numericNoSymbols.hasMatch(input);
  }

  return _numeric.hasMatch(input);
}