distinctBy method
Implementation
Iterable<T> distinctBy(dynamic selector(T input)) {
final set = Set<dynamic>();
return this.where((item) {
final key = selector(item);
return set.add(key);
});
}
Iterable<T> distinctBy(dynamic selector(T input)) {
final set = Set<dynamic>();
return this.where((item) {
final key = selector(item);
return set.add(key);
});
}