Open rignaneseleo opened 4 years ago
Yep that would be useful!
Thanks for the suggestion.
A workaround I found is to create the Media
using the .fromJson()
function and passing an ID and type to that.
It works but it would be better a dedicated method.
Hi, thanks for this library. It works well. I'd like to put media's IDs into my db and show the pictures using queries.
Now the only way is to load the whole list and then get the value with a
.where()
function.Can you either give us a
Map<int,Media>
where the key is the ID or a constructor method calledMedia.fromId(id)
that basically builds the Media from the id?Thanks