FormEntryPrompt constructor

FormEntryPrompt(
  1. FormDef form,
  2. FormIndex index
)

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',
    );
  }
}