toDouble function

double toDouble(
  1. String value
)

Implementation

double toDouble(String value) {
  try {
    return double.parse(value);
  } catch (e) {
    return 0.0;
  }
}