isInteger static method

bool isInteger(
  1. String string
)

Implementation

static bool isInteger(String string) {
  return int.tryParse(string) != null;
}