在模型中想知道有列表我想知道如何插入数据和检索数据。
7uzetpgm1#
简单解决方案:
List<String> someListOfString = ["str1", "str2"]; const composeStr = someListOfString.join("&"); // I suggest you use separator which is not used in string // Now you can save this string to SQLite
检索时:
List<String> originalList = composeStr.split("&");
1条答案
按热度按时间7uzetpgm1#
简单解决方案:
检索时: