getListItems method

Future<List<ListItem>> getListItems(
  1. int id, {
  2. ListType? listType,
  3. RequestPagination? pagination,
  4. bool extendedFull = false,
})

Get all items on a custom list.

Items can be a movie, show, season, episode, or person. You can optionally specify the type parameter with a single value or comma delimited string for multiple item types. All list items are sorted by ascending rank

id - Trakt ID listType - Filter for a specific item type

📄 Pagination ✨ Extended Info 😁 Emojis

Implementation

Future<List<ListItem>> getListItems(
  int id, {
  ListType? listType,
  RequestPagination? pagination,
  bool extendedFull = false,
}) async {
  var request = "lists/$id/items";
  if (listType != null) {
    request = "$request/${listType.value}";
  }
  return await _manager._getList<ListItem>(request, pagination: pagination);
}