toDouble method

double? toDouble()

Converts a string to a double. Returns null if the conversion fails.

Implementation

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