RPQuestionStep constructor

RPQuestionStep({
  1. required String identifier,
  2. required String title,
  3. bool optional = false,
  4. required RPAnswerFormat answerFormat,
  5. bool autoSkip = false,
  6. Duration timeout = const Duration(seconds: 0),
  7. bool autoFocus = false,
  8. String? footnote,
})

Creates a RPQuestionStep.

identifier is a unique id of this step, title is shown as the title of the question), and answerFormat defines the type of questionnaire, as defined in RPAnswerFormat.

Implementation

RPQuestionStep({
  required super.identifier,
  required super.title,
  super.optional,
  required this.answerFormat,
  this.autoSkip = false,
  this.timeout = const Duration(seconds: 0),
  this.autoFocus = false,
  super.footnote,
});