getDouble method

double? getDouble(
  1. String key
)

Access a double value.

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

Implementation

double? getDouble(String key) {
  if (get(key) is! double) {
    return null;
  }

  return get(key);
}