CachedFr<T, K, C, F extends Fr<T>> class

Mixed-in types
Available extensions

Constructors

CachedFr(Fr<C> fv$, F _item(K key))

Properties

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

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

no setter

Methods

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

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
watch() → C
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

list<T, F extends Fr<T>>({required Fr<List<T>> fv, required F wrap(Fr<T> item), T? defaultValue, DspReg? disposers}) CachedFr<T, int, List<T>, F>
map<T, K, F extends Fr<T>>({required Fr<Map<K, T>> fv, required F wrap(Fr<T> item), T? defaultValue, DspReg? disposers}) CachedFr<T, K, Map<K, T>, F>