matches.sort((a,b){
var _a = FollowUtil.isFollowMatch('${a.id}');
var _b = FollowUtil.isFollowMatch('${b.id}');
if(_a == _b){
return 0;
}else if(_a){
return -1;
}
return 1;
});

matches.sort((a,b){
var _a = FollowUtil.isFollowMatch('${a.id}');
var _b = FollowUtil.isFollowMatch('${b.id}');
if(_a == _b){
return 0;
}else if(_a){
return -1;
}
return 1;
});
本文标题:Dart 对List集合按照布尔类型排序
本文链接:https://www.haomeiwen.com/subject/trdqrdtx.html
网友评论