choicesOf method

List<SelectChoice> choicesOf(
  1. String xPath
)

The choices of the select question at xPath.

Implementation

List<SelectChoice> choicesOf(String xPath) {
  final reference = expandSingle(getRef(xPath));
  final control = _model.questionPrompt(_indexOf(reference)).question;
  return control.choices ??
      control.dynamicChoices!.getChoices(formDef, reference);
}