lookupWithKey method

Option<Tuple2<K, V>> lookupWithKey(
  1. K key
)

Get the value and key at given key if present, otherwise return None.

Implementation

Option<Tuple2<K, V>> lookupWithKey(K key) {
  final value = this[key];
  return value != null ? some(tuple2(key, value)) : none();
}