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