Returns true if str represents a floating-point number.
true
str
bool isFloat(String str) => floatReg.hasMatch(str);