SurveyStep<T>.multipleChoiceMultiSelect constructor
SurveyStep<T>.multipleChoiceMultiSelect ({
- required String id,
- required String title,
- String? description,
- required List<
SurveyOption> options, - T? answer,
- bool isRequired = true,
- Future<
void> beforeComplete(- dynamic answer
- void onCompleted(
- dynamic answer
- Future<
void> onInit(- SurveyStep<
T> ? step
- SurveyStep<
- Widget customWidget(
- BuildContext context,
- SurveyStep<
T> step
Constructor for creating a multiple choice multi select survey step.
Parameters:
- id: The unique identifier for the step.
- title: The display title for the step.
- description: An optional description for the step.
- options: A list of SurveyOption objects representing the choices.
- isRequired: A boolean indicating if the step is required.
Implementation
SurveyStep.multipleChoiceMultiSelect({
required this.id,
required this.title,
this.description,
required List<SurveyOption> this.options,
this.answer,
this.isRequired = true,
this.beforeComplete,
this.onCompleted,
this.onInit,
this.customWidget,
}) : stepType = SurveyStepType.multipleChoiceMultiSelect,
assert(options.length >= 2,
'Multiple choice questions must have at least two options.');