I have a bunch of data all stored in ValueTrees (I have some recursive “tree-like” classes) which I save in files, when you press “save” button.
I would like to save all of them in files every few seconds (the interval doesn´t matter) without pressing any button, so when I close my app and reopen all changes shall restore.
I have seen PropertiesFile class to do that work, but I realized it can not handle tree-like data in an easy way. I thought of using a ValueTree, create an XML, and save the XML in the PropertiesFile, all in real time, but I have read in another post that a ValueTree is not recommended to use in real time.
Thanks a lot,