contains method

bool contains(
  1. Object key,
  2. Object value
)

Returns true if the map contains the specified key and value, false otherwise.

Implementation

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