toDouble property

double? get toDouble

Converts the string to a double.

@return The double value of the string, or null if conversion is not possible.

Implementation

double? get toDouble => double.tryParse(this);