getShowComments method
Future<List<Comment> >
getShowComments(
- String id, {
- CommentsSortBy sortBy = CommentsSortBy.newest,
- RequestPagination? pagination,
Returns all top level comments for a show.
By default, the newest comments are returned first. Other sorting options include oldest, most likes, most replies, highest rated, lowest rated, most plays, and highest watched percentage.
id
- Trakt ID, Trakt slug, or IMDB ID
sortBy
- how to sort.
📄 Pagination 😁 Emojis
Implementation
Future<List<Comment>> getShowComments(String id,
{CommentsSortBy sortBy = CommentsSortBy.newest,
RequestPagination? pagination}) async {
return await _manager._getList<Comment>(
"shows/$id/comments/${sortBy.value}",
pagination: pagination);
}