isInt static method

bool isInt(
  1. String value
)

Implementation

static bool isInt(String value) {
  try {
    int.parse(value);
    return true;
  } catch (e) {
    return false;
  }
}