currentChoices property
The list of Choice objects available at the current point in
the Story. This list will be populated as the Story is stepped
through with the Continue() method. Once canContinue becomes
false, this list will be populated, and is usually
(but not always) on the final Continue() step.
Implementation
List<Choice> get currentChoices {
// Don't include invisible choices for external usage.
var choices = <Choice>[];
if (_state == null) {
throw StateError('this._state');
}
for (var c in _state.currentChoices) {
if (!c.isInvisibleDefault) {
c.index = choices.length;
choices.add(c);
}
}
return choices;
}