isNumeric function Null safety

bool isNumeric(
  1. String input,
  2. {bool no_symbols = false}
)

check if the string input contains only numbers

Implementation

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

  return _numeric.hasMatch(input);
}