toDouble method

double? toDouble()

Tries to parse the string as a double and returns the result.

Returns null if the string cannot be parsed as a double.

Implementation

double? toDouble() {
  return double.tryParse(this);
}