I'm using Hive for Flutter. I want to insert every item at position 0 of a box. The items inside the box have to increase index automatically. If I use the 'add' method, the new item inserted takes the last position. This is not good for a List View. The last item inserted must be the first of the list in order to make it visible to the user.
Asked
Active
Viewed 1,016 times
1 Answers
0
Keys are automatically sorted, no insertion order is preserved:
Boxes are sorted by lexicographically by key. Keys can either be strings or integers.

Maxim Saplin
- 4,115
- 38
- 29