I've got the following code which works well if there are tags present in the widget.tagname list.
List<String> split = widget.tagname?.split(',')??'';
However, if there are no tags in the list I get this error;
type 'String' is not a subtype of type 'List<String>'
What am I doing wrong?