toDouble method

double? toDouble()

Parse to double

Implementation

double? toDouble() {
  if (this == null) {
    throw FormatException();
  }
  return double.parse(this!);
}