ObsMap<K, V>.fromIterable constructor
- Iterable iterable, {
- K key(
- dynamic element
- V value(
- 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));