toDouble method

double toDouble()

Implementation

double toDouble() {
  try {
    return double.parse(this);
  } catch (e) {
    return 0;
  }
}