getDouble static method

double getDouble(
  1. dynamic data,
  2. double defaultValue
)

Parse double

Implementation

static double getDouble(dynamic data, double defaultValue) {
  if (data == null) {
    return defaultValue;
  }
  return double.parse(data.toString());
}