getDouble method

double getDouble (String key)

Access a double value.

Returns double.nan if there is no such key or if it is not a double.

Implementation

double getDouble(String key) {
  if (get(key) is! double) {
    return double.nan;
  }

  return get(key);
}