isInt function

bool isInt (
  1. String str
)

check if the string str is an integer

Implementation

bool isInt(String str) {
  return _int.hasMatch(str);
}