Flutter Hydrated Bloc always replaced with the initial state and not persisting
I am trying to use hydrated bloc to persist my cubit. But after some trial and error, I found that the loaded state will always be replaced with the initial state class DefectSectionsCubit extends HydratedCubit<DefectSectionsState> { DefectSectionsCubit() : super(DefectSectionsState.initial()) {…