storesByContext property

  1. @override
Map<Context, Store> get storesByContext
inherited

A Map of contexts that connected components within the component tree can use to receive updates from specific stores.

Each context and store instance should be unique. Referencing the context in a connected component is exactly the same as it would with a standard ReduxProvider.

Implementation

@override
Map<Context, Store> get storesByContext =>
    (props[_$key__storesByContext___$ReduxMultiProviderProps] ?? null)
        as Map<Context, Store>;
  1. @override
set storesByContext (Map<Context, Store> value)
inherited

A Map of contexts that connected components within the component tree can use to receive updates from specific stores.

Each context and store instance should be unique. Referencing the context in a connected component is exactly the same as it would with a standard ReduxProvider.

Implementation

@override
set storesByContext(Map<Context, Store> value) =>
    props[_$key__storesByContext___$ReduxMultiProviderProps] = value;