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