从Dart 2.2.2或更高版本开始,您可以使用传播运算符:
ListView( children: <Widget>[ Text('Section 1 Header'), ..._buildSection1ListItems(), Text('Section 2 Header'), ])
从Dart 2.2.2或更高版本开始,您可以使用传播运算符:
ListView( children: <Widget>[ Text('Section 1 Header'), ..._buildSection1ListItems(), Text('Section 2 Header'), ])