RPUIDateTimeQuestionBody constructor
RPUIDateTimeQuestionBody(
- RPDateTimeAnswerFormat answerFormat,
- void onResultChange(
- dynamic
- Key? key,
Implementation
RPUIDateTimeQuestionBody(
this.answerFormat,
this.onResultChange, {
super.key,
}) {
mode = (answerFormat.dateTimeAnswerStyle == RPDateTimeAnswerStyle.Date)
? CupertinoDatePickerMode.date
: (answerFormat.dateTimeAnswerStyle == RPDateTimeAnswerStyle.TimeOfDay)
? CupertinoDatePickerMode.time
: CupertinoDatePickerMode.dateAndTime;
}