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