ComputedMap<K, V>.fromPiecewiseComputed constructor
ComputedMap<K, V>.fromPiecewiseComputed (
- Iterable<
K> domain, - Computed<
V> f(- K key
Like .fromPiecewise, but the values are defined by reactive computations.
Implementation
factory ComputedMap.fromPiecewiseComputed(
Iterable<K> domain, Computed<V> Function(K key) f) =>
ComputedMap.fromPiecewise(domain, f).mapValuesComputed((_, c) => c);