answerStep property
String?
get
answerStep
The next step that answers this surface by text, naming every choice; null when it offers none.
Implementation
String? get answerStep {
if (choices.isEmpty) return null;
final all = choices.map((c) => c.text).join(' | ');
final yes = affirmative;
return yes == null
? 'answer it by tapping one of its choices by text (choices: $all)'
: 'answer it by text, e.g. tap text:"${yes.text}" (choices: $all)';
}