getPersonLists method
Future<List<TraktList> >
getPersonLists(
- String id, {
- ListType type = ListType.personal,
- ListSort sortBy = ListSort.popular,
- RequestPagination? pagination,
Returns all lists that contain this person.
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>> getPersonLists(String id,
{ListType type = ListType.personal,
ListSort sortBy = ListSort.popular,
RequestPagination? pagination}) async {
return await _manager._getList<TraktList>(
"people/$id/lists/${type.value}/${sortBy.value}",
pagination: pagination);
}