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