check if the string str contains only number
str
bool isNum(String str) { return _numeric.hasMatch(str); }