【发布时间】:2020-12-04 06:24:23
【问题描述】:
如果widget.tagname 列表中存在标签,我有以下代码可以正常工作。
List<String> split = widget.tagname?.split(',')??'';
但是,如果列表中没有标签,我会收到此错误;
type 'String' is not a subtype of type 'List<String>'
我做错了什么?
【问题讨论】:
标签: string list flutter dart split