I use getStroage to store a list of item which users add it to favorite list, like so:
...
_storage.write(key, list[index]);
Here I give each item an uuid as key.
But when I tried to fetch them from storage, I need to know how many they are stored( ListBuilder need it), and I didn't find a method to fetch this property.
I use getStroage to store a list of item which users add it to favorite list, like so:
Here I give each item an uuid as
key
. But when I tried to fetch them from storage, I need to know how many they are stored(ListBuilder
need it), and I didn't find a method to fetch this property.Or is this a bad implementation with
get_storage
?