entryOrNull method

MapEntry<K, V>? entryOrNull(
  1. K key
)

Return the MapEntry for the given key. For key/value pairs that don't exist, it will return null.

Implementation

MapEntry<K, V>? entryOrNull(K key) => _m.containsKey(key) ? MapEntry(key, _m[key]!) : null;