lookup method

TValue? lookup(
  1. TKey key
)

wrapper around key-value access

Implementation

TValue? lookup(TKey key) => containsKey(key) ? this[key] : null;