How to save List<List<String>> with SharedPreferences in Flutter
问题 I am trying to save a List of List but I don't know how to do that. So I have List<List> _randList = new List(); 回答1: See, there is no way that we can use Shared Preferences in order store List<List<String>> . However, we can always use a workaround. Since, we already that we can store the List<String> only in the Shared Preferences, it is best to store the nested lists in the form of String , like below List<String> _arr = ["['a', 'b', 'c'], ['d', 'e', 'f']"]; In this way, you will be having