contains method

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

Returns true if this map contains the given key with the given value.

Implementation

bool contains(K key, V value) {
  V? _value = this[key];
  return (_value == null) ? containsKey(key) : (_value == value);
}