Returns true if input parses as a number via num.tryParse.
true
input
num.tryParse
bool isNumber(String? input) => num.tryParse(input ?? '') != null;