bool isNumeric(String s) { if (s == 'null' || s == '') return false; return int.tryParse(s) != null; }