toDouble method

double toDouble()

Converts the string into a double.

Throws an error if the string is not a valid double.

Implementation

double toDouble() => double.parse(this);