groupAndMapBy<M> method
- M keyFunction(
- T
Groups the items in the list by the item returned by the lambda function.
The lambda function takes an item of type T and returns a item of type M used as key.
The function returns a Map<M,List
Implementation
Map<M, List<T>> groupAndMapBy<M>(M Function(T) keyFunction) => groupBy(keyFunction).toMap((e) => MapEntry(e.key, e.elements), modifiable: true);