submissions method

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

Returns a Stream<Submissions> which listens for new submissions as they become available.

Submissions are streamed oldest first, and up to 100 historical submissions 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<Submission?> submissions({int? limit, int? pauseAfter}) =>
    streamGenerator(redditor.submissions.newest,
        itemLimit: limit, pauseAfter: pauseAfter);