ComputedMap<K, V>.fromPiecewiseComputed constructor

ComputedMap<K, V>.fromPiecewiseComputed(
  1. Iterable<K> domain,
  2. Computed<V> f(
    1. 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);