float method Null safety

String? float(
  1. String? value,
  2. {String? message}
)

Check if the value is a floating point number.

Implementation

static String? float(String? value, {String? message}) =>
    value == null || value.isEmpty || validations.isFloat(value) ? null : message ?? 'Please enter a valid double';