registerStore<T> method

void registerStore<T>(
  1. String id,
  2. Store<T> store
)

Register a store with a unique ID

Implementation

void registerStore<T>(String id, Store<T> store) {
  if (_stores.containsKey(id)) {
    developer.log('Store with ID $id already exists, replacing', name: 'StoreRegistry');
  }
  _stores[id] = store;
}