tryGet method

V? tryGet(
  1. K key
)

Returns the value of key or null if the key doesn't exist.

Implementation

V? tryGet(K key) => containsKey(key) ? this[key] : null;