getDouble method
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
@param key a String @param defaultValue Value to return if key does not exist @return a double value
Implementation
double getDouble(String key, {double defaultValue = 0.0}) {
// unparcel();
var o = _map[key];
if (o == null) {
return defaultValue;
}
try {
return o as double;
} catch (e) {
// typeWarning(key, o, "Double", defaultValue, e);
return defaultValue;
}
}