operator [] method

S? operator [](
  1. T key
)

Returns element with key key

Implementation

S? operator [](T key) => _cache.containsKey(key) ? _cache[key] : null;