【全为数字】返回true
static bool isNum(String str) { return RegExp(r'^-?[0-9]+(\.[0-9]+)?$').hasMatch(str); }