isInt function

bool isInt(
  1. String str
)

check if the string is an integer

Implementation

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