next method

FeedEntry? next()

Moves to the next theme: replays the history forward after previous, otherwise draws a new one. Null while locked.

Implementation

FeedEntry? next() {
  if (locked) return null;
  if (_cursor < _history.length - 1) {
    _cursor++;
  } else {
    _history.add(entryAt(_steps));
    _steps++;
    _cursor++;
    _trim();
  }
  _notify();
  return current;
}