submissions method

Stream<Submission?> submissions({
  1. int? limit,
  2. int? pauseAfter,
})

Yields new Submissions as they become available.

Submissions are yielded oldest first. Up to 100 historical submissions will initially be returned. If limit is provided, the stream will close after limit iterations. If pauseAfter is provided, null will be returned after pauseAfter requests without new items.

Implementation

Stream<Submission?> submissions({int? limit, int? pauseAfter}) =>
    streamGenerator<Submission>(_subreddit.newest,
        itemLimit: limit, pauseAfter: pauseAfter);