mergeKeysValuesToList method

Map<K, List<V>> mergeKeysValuesToList(
  1. Map<K, V> other, {
  2. V onAbsentKey(
    1. K key,
    2. bool other
    )?,
})

Merge this instance with other, merging keys values to a List<V>. See mergeKeysValues.

  • onAbsentKey called when a key in this instance is not present in other instance (vice versa).

Implementation

Map<K, List<V>> mergeKeysValuesToList(Map<K, V> other,
        {V Function(K key, bool other)? onAbsentKey}) =>
    mergeKeysValues(other, (k, a, b) => [a, b], onAbsentKey: onAbsentKey);