comments method

Stream<Comment?> comments({
  1. int? limit,
  2. int? pauseAfter,
})

Returns a Stream<Comment> which listens for new comments as they become available.

Comments are streamed oldest first, and up to 100 historical comments will be returned initially. If limit is provided, the stream will close after after limit iterations. If pauseAfter is provided, null will be returned after pauseAfter requests without new items.

Implementation

Stream<Comment?> comments({int? limit, int? pauseAfter}) =>
    streamGenerator(redditor.comments.newest,
        itemLimit: limit, pauseAfter: pauseAfter);