registerReduxStore static method

void registerReduxStore(
  1. ReduxStore store,
  2. String? name
)

Register ReduxStore for time-travel debugging

Implementation

static void registerReduxStore(ReduxStore<dynamic> store, String? name) {
  if (!_enabled) return;
  final id = 'redux_${store.hashCode}';
  _reduxStoreRefs[id] = store;
  _stateNodes[id] = _StateNode(
    id: id,
    type: 'ReduxStore',
    name: name ?? store.runtimeType.toString(),
  );
}