When I change data in an object that is stored in Hive, those changes are reflected directly in the Hive database without explicitly calling a save function due to the way Hive handles its objects. Hive supports lazy-loaded, reactive objects, meaning any modifications to a Hive object are automatically persisted
I need to fix this, i did not want to directly change to the hive in flutter
i am store an Hive object(UserModel) in hive and retrive this data in that Hive object(UserModel)
I want to change the data in the screen user edit screen. In this edit screen assign the edited value in userModel.name = textcontroller.text. but I did not store in hive but the changes are effects directly in the hive? How has this is happened ? and why this happened? anyone please help me ASAP. Thanks in advance. when I hot restart the old data will come up without any interaction.
Thinakaran SivanPandian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.