isInteger static method

bool isInteger(
  1. String value
)

Implementation

static bool isInteger(String value) {
  if (value.isEmpty) return false;
  return int.tryParse(value) != null;
}