[英]Flutter How to store a list of values with same variable in shared preferences and then get the specific value from there
我有一个变量abc并且值来自 json 并且它不是静态的 例如:abc="123" 或者它可以更改为 abc="456"。 如何在共享首选项中将具有不同值的此变量存储为数组并获取特定值?
共享首选项具有setStringList(String key, List<String> value)
,您可以使用getStringList(String key)
检索这些值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.