mapEntry<K, V> method

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

A generator that returns MapEntrys.

Implementation

Generator<core.MapEntry<K, V>> mapEntry<K, V>(
  Generator<K> key,
  Generator<V> value,
) {
  return combine2(key, value, (K key, V value) => core.MapEntry(key, value));
}