在这段代码中,我可以删除.toList()并获得相同的输出。为什么它是可选的?如果我删除扩展运算符并保留.toList(),我会得到错误"typeList<dynamic> is not a subtype of typeWidget"。(这使我的理论无效,扩散运算符和.toList具有相同的效果)
我读到前面提到的错误是由于类型推断,并看到建议将<Widget</e
我正在将我的本地android项目转换为flutter应用程序,在此我需要在其他小部件下面显示选项网格。MainAxisAlignment.spaceAround, homeThumb("images/icons/list.pnggrid = new GridView.count( children: new List<