dartx icon indicating copy to clipboard operation
dartx copied to clipboard

Add Iterable.groupBy option which returns List of Lists

Open deadsoul44 opened this issue 6 years ago • 4 comments

Iterable.groupBy returns a map but if it returns List of Lists optionally or with another extension, it will be more useful with nested Listview.

deadsoul44 avatar Jan 29 '20 20:01 deadsoul44

You could just call .groupBy().values.toList().

simc avatar Jan 29 '20 20:01 simc

Currently, I am doing that way. But if we could add this option, it would be shorter. If you think it is not necessary, we can close the issue.

deadsoul44 avatar Jan 29 '20 20:01 deadsoul44

I think it is not something many users need...

simc avatar Jan 29 '20 21:01 simc

People who have nested Listview builder in widget tree and who get data from some API desperately need this and I guess they are not even aware of groupby function or extension. Other than that, maybe there is no use case.

deadsoul44 avatar Jan 30 '20 08:01 deadsoul44