Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Iterable.groupBy option which returns List of Lists #51

Open
deadsoul44 opened this issue Jan 29, 2020 · 4 comments
Open

Add Iterable.groupBy option which returns List of Lists #51

deadsoul44 opened this issue Jan 29, 2020 · 4 comments

Comments

@deadsoul44
Copy link

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.

@simc
Copy link
Owner

simc commented Jan 29, 2020

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

@deadsoul44
Copy link
Author

deadsoul44 commented Jan 29, 2020

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.

@simc
Copy link
Owner

simc commented Jan 29, 2020

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

@deadsoul44
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants