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

Added deleteAllAt() to remove list of indices #1227

Closed
wants to merge 2 commits into from

Conversation

Alexandre2006
Copy link

As suggested in this StackOverflow thread, I've added a function that allows multiple elements in a box to be deleted at the same time based off of a list of indices.

I've also written tests for the new function.

hive/lib/src/box/box_base_impl.dart Outdated Show resolved Hide resolved
@Alexandre2006
Copy link
Author

Any updates on merging this PR?

@themisir
Copy link
Contributor

themisir commented Aug 7, 2023

Sorry for this one taking so long, I am not sure about merging the change as it doesn't add any new feature to the library. There's already existing methods for converting indices to keys and method for deleting items in bulk with keys. This is by no means a final decision, just my personal opinion. Maybe other maintainers may have different opinions.

@Alexandre2006
Copy link
Author

Understood. I think this just improves developer experience in some cases.

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

Successfully merging this pull request may close these issues.

2 participants