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