isNumeric function

bool isNumeric(
  1. String str
)

check if the string str contains only numbers

Implementation

bool isNumeric(String str) {
  return _numeric.hasMatch(str);
}