SurveyStep<T>.datePicker constructor
SurveyStep<T>.datePicker ({
- required String id,
- required String title,
- String? description,
- 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 date picker survey step.
Parameters:
- id: The unique identifier for the step.
- title: The display title for the step.
- description: An optional description for the step.
- isRequired: A boolean indicating if the step is required.
Implementation
SurveyStep.datePicker({
required this.id,
required this.title,
this.description,
this.answer,
this.isRequired = true,
this.beforeComplete,
this.onCompleted,
this.onInit,
this.customWidget,
}) : options = null,
stepType = SurveyStepType.datePicker;