getAllReduxStores static method
Get all Redux stores
Implementation
static List<Map<String, dynamic>> getAllReduxStores() {
if (!_enabled) {
return [];
}
final stores = <Map<String, dynamic>>[];
for (final entry in _reduxStoreRefs.entries) {
try {
final reduxStore = entry.value;
stores.add({
'id': entry.key,
'name': _stateNodes[entry.key]?.name ?? 'ReduxStore',
'currentState': _serializeValue(reduxStore.value),
'actionCount': reduxStore.actionHistory.length,
});
} catch (e) {
stores.add({
'id': entry.key,
'error': e.toString(),
});
}
}
return stores;
}