FormEntryPrompt constructor
The prompt for the question at index in form.
Implementation
FormEntryPrompt(super.form, super.index)
: treeElement = form.mainInstance.resolveReference(index.reference!)! {
if (element is! QuestionDef) {
throw ArgumentError(
'FormEntryPrompt can only be created for QuestionDef elements',
);
}
}