ObsMap<K, V>.fromIterable constructor

ObsMap<K, V>.fromIterable(
  1. Iterable iterable, {
  2. K key(
    1. dynamic element
    )?,
  3. V value(
    1. dynamic element
    )?,
})

Creates a Map instance in which the keys and values are computed from the iterable.

Implementation

factory ObsMap.fromIterable(
  Iterable iterable, {
  K Function(dynamic element)? key,
  V Function(dynamic element)? value,
}) => ObsMap(Map<K, V>.fromIterable(iterable, key: key, value: value));