parseDouble static method

double parseDouble(
  1. dynamic val
)

Implementation

static double parseDouble(dynamic val) {
  double value = 0.0;

  try {
    if (val != null) {
      value = double.parse(val.toString());
    }
  } catch (e) {
    print(e);
  }

  return value;
}