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})

Properties

fv Fu<C>
final
hashCode int
The hash code for this object.
no setterinherited
keys Fr<Iterable<K>>
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sortedKeys Fr<Iterable<K>>
latefinal
value → T

Available on Fr<T>, provided by the FrX extension

no setter

Methods

add(V item) → void

Available on Fu<List<V>>, provided by the FuCommonListX extension

call() → T

Available on Fr<T>, provided by the FrX extension

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
itemFr(K key, {V? defaultValue}) Fr<V>

Available on Fr<Map<K, V>>, provided by the FrCommonMapX extension

itemFrHot(int index, {V? defaultValue, DspReg? disposers}) Fr<V>

Available on Fr<List<V>>, provided by the FrCommonListX extension

itemFrHot(K key, {V? defaultValue, DspReg? disposers}) Fr<V>

Available on Fr<Map<K, V>>, provided by the FrCommonMapX extension

itemFw(int index, {V? defaultValue}) Fw<V>

Available on Fu<List<V>>, provided by the FuCommonListX extension

itemFw(K key, {V? defaultValue}) Fw<V>

Available on Fu<Map<K, V>>, provided by the FuCommonMapX extension

itemFwHot(int index, {V? defaultValue, DspReg? disposers}) Fw<V>

Available on Fu<List<V>>, provided by the FuCommonListX extension

itemFwHot(K key, {V? defaultValue, DspReg? disposers}) Fw<V>

Available on Fu<Map<K, V>>, provided by the FuCommonMapX extension

map<V>(V mapper(T t)) Fr<V>

Available on Fr<T>, provided by the FrX extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChange(void callback(T value), {bool fireImmediately = false, DspReg? disposers}) → void

Available on Fr<T>, provided by the FrX extension

read() → C
inherited
toString() String
A string representation of this object.
inherited
update(void updates(C items)) → void
inherited
watch() → C
inherited

Operators

operator ==(Object other) bool
The equality operator.
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>