contains method

bool contains(
  1. K key,
  2. V value
)

Returns true if this map contains key with exactly value.

Implementation

bool contains(K key, V value) => containsKey(key) && this[key] == value;