populateMultiCache<K, C extends Record, M extends Map<K, V> > method
Future<V?>
populateMultiCache<K, C extends Record, M extends Map<K, V> >(
- Map<
C, M> caches, - K key,
- C context,
- 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;
});