RPUIDateTimeQuestionBody constructor

RPUIDateTimeQuestionBody(
  1. RPDateTimeAnswerFormat answerFormat,
  2. void onResultChange(
    1. dynamic
    ), {
  3. 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;
}