dart-lang / collection

The collection package for Dart contains a number of separate libraries with utility functions and classes that makes working with collections easier.

Home Page:https://pub.dev/packages/collection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GroupBy multi key

selvam920 opened this issue · comments

how to do group by multiple key based sum of the value.

List<Object> myList;
// ... add items to myList
final groups = groupBy(myList, (e) => (e.property1 + e.property2));