Converts a string to a number if possible.
static num? toNum(String input) { return num.tryParse(input); }