isInt function

bool isInt(
  1. String value
)

Checks if string is int.

Implementation

bool isInt(String value) {
  return int.tryParse(value) is int;
}