goToNextPage method

void goToNextPage(
  1. PageNext next
)

Used to jump to the next page based on the Player's choice.

Implementation

void goToNextPage(PageNext next) {
  history.add(
    HistoryItem(text: next.text),
  );
  currentPage = next.nextPage!;
  currentPage.currentIndex = 0;
  _logCurrentPassageToHistory();
}