string is numeric or not
static bool isNumeric(String? s) { if (s == null) { return false; } return double.tryParse(s) != null; }