upcoming method

List<FeedEntry> upcoming([
  1. int count = 3
])

The next count entries next would return, in order (pure; does not move the feed). The prefetch hook.

Implementation

List<FeedEntry> upcoming([int count = 3]) => [
  for (var i = 1; i <= count; i++)
    if (_cursor + i < _history.length)
      _history[_cursor + i]
    else
      entryAt(_steps + _cursor + i - _history.length),
];