【发布时间】:2019-02-16 16:53:48
【问题描述】:
我有这个String。
var String a = '["one", "two", "three", "four"]';
var ab = (a.split(','));
print(ab[0]); // return ["one"
我想把它转换成List<String>。
问题是它也返回方括号。我想列出看起来这个["one", "two", "three", "four"] 而不是[["one", "two", "three", "four"]]。
如何正确转换?
【问题讨论】: