rinukkusu / spotify-dart

A dart library for interfacing with the Spotify API.
BSD 3-Clause "New" or "Revised" License
207 stars 93 forks source link

Refactors duplicate logic of `list` methods #169

Closed hayribakici closed 1 year ago

hayribakici commented 1 year ago

This PR refactors the logic of the list methods that are in numerous endpoint files. This is done by adding a generic _listWithIds method, which results having less repetetive code.

hayribakici commented 1 year ago

Was contemplating for a second if _listFromIds would fit better, but it's fine 😆

Thank you for your continued contributions! Much appreciated!

That seems like a good idea. Should I change it?