groupByKey static method
Group the objects according to key/value pair and return list
Example:
groupBy(list, "key")
Implementation
static Map<dynamic, dynamic> groupByKey(List<dynamic> list, String key) {
// ignore: always_specify_types
return groupBy(list, (obj) => obj[key]);
}