SurveyStep<T>.preparation constructor
SurveyStep<T>.preparation ({
- required String id,
- required String title,
- String? description,
- 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 preparation 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.preparation({
required this.id,
required this.title,
this.description,
this.options,
this.answer,
this.isRequired = true,
this.beforeComplete,
this.onCompleted,
this.onInit,
this.customWidget,
}) : stepType = SurveyStepType.preparation;