isFloat function

bool isFloat(
  1. String str
)

check if the string is a float

Implementation

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