matchKey method

K? matchKey(
  1. K key
)

Returns the existing key that matches key.

Implementation

K? matchKey(K key) {
  if (containsKey(key)) return key;
  return null;
}