///数组转字符串 String getTaskScreen(List list){ List tempList = List(); String str = ''; list.forEach((f){ tempList.add(f.title); }); tempList.forEach((f){ if(str == ''){ str = "$f"; }else { str = "$str"",""$f"; } }); return str; }
参考链接:https://www.liangzl.com/get-article-detail-157067.html