【发布时间】:2019-12-24 00:52:25
【问题描述】:
我有这个小部件:
body: CustomScrollView(
slivers: <Widget>[
SliverList(
delegate: SliverChildBuilderDelegate(
(BuildContext context, int index) {
return _team(context, index);
}, childCount: Provider.of<Game>(context).teams.list.length),
),
],
),
这里我显示了一个带有int 属性的对象数组(或地图列表)。
如何在不修改变量本身的情况下按此排序我的数组?
【问题讨论】: