float static method
Ensures the string is a finite floating-point number.
Implementation
static String? Function(String?) float({
double? min,
double? max,
String errorMessage = 'Please enter a valid number',
}) {
return _build(errorMessage, (v) => v.isFloat(min: min, max: max));
}