getMovieLists method
Future<List<TraktList> >
getMovieLists(
- String id, {
- ListType type = ListType.personal,
- ListSort sortBy = ListSort.popular,
- RequestPagination? pagination,
Returns all lists that contain this movie.
By default, personal lists are returned sorted by the most popular.
id
- Trakt ID, Trakt slug, or IMDB ID
type
- Filter for a specific list type
sortBy
- How to sort
📄 Pagination 😁 Emojis
Implementation
Future<List<TraktList>> getMovieLists(String id,
{ListType type = ListType.personal,
ListSort sortBy = ListSort.popular,
RequestPagination? pagination}) async {
return await _manager._getList<TraktList>(
"movies/$id/lists/${type.value}/${sortBy.value}",
pagination: pagination);
}