historyChanges property

Stream<List<HistoryItem>> historyChanges
getter/setter pair

A stream with the full list of history.

New values are pushed to the stream when user presses Continue or makes a choice. By default, once the Story is started the stream will contains the very first node from the first page. This stream can be used by Flutter StreamBuilder widget to react to the Story changes. The stream contains all the necessary info to update and build the Story view.

Implementation

late Stream<List<HistoryItem>> historyChanges;