Checks if string is int or double.
bool isNumber(String value) { return num.tryParse(value) is num; }