toDouble method

double toDouble()

Implementation

double toDouble() {
  if (isNullOrEmpty()) {
    return 0.0;
  }
  try {
    return double.parse(this!);
  } catch (e) {
    return 0.0;
  }
}