Flutter Bloc Cubit update Map in State

Issue I have a Map<int,int> inside my State which I want to update at some point. Currently I am updating the map like this: final updatedMap = Map<int, int>.from(state.skipViewsWithSkipValues); updatedMap[state.currentViewIndex] = _viewsIfMnp.length; emit( state.copyWith( skipViewsWithSkipValues: updatedMap, ), ); And this

Continue reading