I am building a calendar app and for that I need to save the data locally. The data is in the form of a Map<DateTime,List<dynamic>>.
I was thinking of using the SharedPreferences plugin for Flutter but on pub.dev it says "Neither platform can guarantee that writes will be persisted to disk after returning and this plugin must not be used for storing critical data." and so I'm hesitant to use it. Is there any advantage to storing data to SharedPreferences over just saving it to a file?
I am not sure how exactly I'll save to a file but I'm thinking of converting it to a String using jsonDecode().