populateMultiCache<K, C extends Record, M extends Map<K, V>> method

Future<V?> populateMultiCache<K, C extends Record, M extends Map<K, V>>(
  1. Map<C, M> caches,
  2. K key,
  3. C context,
  4. M cacheInstantiator(),
)

Implementation

Future<V?> populateMultiCache<K, C extends Record, M extends Map<K, V>>(
  Map<C, M> caches,
  K key,
  C context,
  M Function() cacheInstantiator,
) async => then((o) {
  if (o != null) {
    caches.populateMultiCache(key, context, cacheInstantiator, o);
  }
  return o;
});