submissions method
Yields new Submission
s as they become available.
Submission
s 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);