QuestionsModel constructor

const QuestionsModel({
  1. required String question,
  2. required String key,
  3. String? validationMessage,
  4. QuestionFieldType? type,
  5. List<String>? options,
  6. QuestionOptionsPresentation? optionsPresentation,
  7. int? optionsChipMaxCount,
  8. String? optionsSheetTitle,
  9. Future<String?> onValidate(
    1. String answer
    )?,
})

Implementation

const QuestionsModel({
  required this.question,
  required this.key,
  this.validationMessage,
  this.type,
  this.options,
  this.optionsPresentation,
  this.optionsChipMaxCount,
  this.optionsSheetTitle,
  this.onValidate,
});