RPUIDateTimeQuestionBody constructor

RPUIDateTimeQuestionBody(
  1. RPDateTimeAnswerFormat answerFormat,
  2. dynamic onResultChange(
    1. dynamic
    )
)

Implementation

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