get method

D? get(
  1. String key
)

returns the value associated with that key. Returns null if key is not defined

Implementation

D? get(String key) => containsKey(key) ? this[key] : null;