contains method
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);
}
Returns true
if this map contains the given key
with the given value
.
bool contains(K key, V value) {
V? _value = this[key];
return (_value == null) ? containsKey(key) : (_value == value);
}