I am trying to safe and load a conversation in my Flutter app. For that I push each message to a List of Maps:
List<Map> messages = [];
[...]
messages.insert(0, {"data": 1, "message": "Hello, how are you?"}); //Message from user 1
messages.insert(0, {"data": 2, "message": "I am fine."}); //Message from user 2
Now, how can I safe this data (the messages List) on the local device and load it when starting the app?
I have tried Shared Preferences already but it only allows me to store Lists of type String, not Map.
Can I convert List of type Map to List of type String and then work with it?