我有以下的代码,如果
然而,如果列表中没有标签,则会出现此错误;
我做错了什么?
widget.tagname
列表中存在标签,则它可以正常工作。List<String> split = widget.tagname?.split(',')??'';
然而,如果列表中没有标签,则会出现此错误;
type 'String' is not a subtype of type 'List<String>'
我做错了什么?