isNum method

bool isNum(
  1. String str
)

check if the string str contains only number

Implementation

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