isFloat function

bool isFloat (
  1. String str
)

check if the string str is a float

Implementation

bool isFloat(String str) {
  return _float.hasMatch(str);
}