RPUIDateTimeQuestionBody constructor

RPUIDateTimeQuestionBody(RPDateTimeAnswerFormat answerFormat, dynamic onResultChange(dynamic))

Implementation

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