CachedFu<T, K, C, F extends Fw<T>> constructor

CachedFu<T, K, C, F extends Fw<T>>({
  1. required Fu<C> fv,
  2. required F item(
    1. K key
    ),
  3. required T? get(
    1. C collection,
    2. K key
    ),
  4. required Iterable<K> keys(
    1. C collecion
    ),
  5. required Iterable<K> sortedKeys(
    1. C collecion
    ),
  6. required DspReg? disposers,
})

Implementation

CachedFu({
  required this.fv,
  required F Function(K key) item,
  required T? Function(C collection, K key) get,
  required Iterable<K> Function(C collecion) keys,
  required Iterable<K> Function(C collecion) sortedKeys,
  required DspReg? disposers,
})  : _item = item,
      _get = get,
      _keys = keys,
      _sortedKeys = sortedKeys,
      _disposers = disposers;