Checks if string is int or double.
static bool isNum(String value) { if (isNull(value)) { return false; } return num.tryParse(value) is num; }