MapEntry<K, V> constructor Null safety

const MapEntry<K, V>(
  1. K key,
  2. V value
)

Creates an entry with key and value.

Implementation

const factory MapEntry(K key, V value) = MapEntry<K, V>._;