addNextPageWithText method

void addNextPageWithText(
  1. String text
)

Used by the Editor to add choice with next page.

Implementation

void addNextPageWithText(String text) {
  var page = Page(
      nodes: List.empty(growable: true), next: List.empty(growable: true));
  next.add(PageNext(text: text, nextPage: page));
}