CachedFu<T, K, C, F extends Fw<T>> class
- Mixed-in types
-
- Available extensions
Constructors
-
CachedFu({required Fu<C> fv, required F item(K key), required T? get(C collection, K key), required Iterable<K> keys(C collecion), required Iterable<K> sortedKeys(C collecion), required DspReg? disposers})
-
Methods
-
changes()
→ Stream<C>
-
"changes" is not a great name since, by contract, the stream
includes the initial, not yet changed value.
maybe rename it to "distinctValues()" ?
inherited
-
exists(K key)
→ Fr<bool>
-
-
get(K key)
→ Fr<T?>
-
-
item(K key)
→ F
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
read()
→ C
-
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
update(void updates(C items))
→ void
-
inherited
-
watch()
→ C
-
inherited
Static Methods
-
list<T, F extends Fw<T>>({required Fu<List<T>> fv, required F wrap(Fw<T> item), T? defaultValue, DspReg? disposers})
→ CachedFu<T, int, List<T>, F>
-
-
map<T, K, F extends Fw<T>>({required Fu<Map<K, T>> fv, required F wrap(Fw<T> item), T? defaultValue, DspReg? disposers})
→ CachedFu<T, K, Map<K, T>, F>
-