in lib/github_datatypes.dart [1746:1761]
static Cluster byAuthor(List<dynamic> issuesOrPullRequests) {
var result = SplayTreeMap<String, dynamic>();
for (var item in issuesOrPullRequests) {
if (!(item is Issue) && !(item is PullRequest)) {
throw ('invalid type!');
}
var name = item.author != null ? item.author.login : '@@@ NO AUTHOR @@@';
if (!result.containsKey(name)) {
result[name] = [];
}
result[name].add(item);
}
return Cluster._internal(ClusterType.byAuthor, result);
}