RPDateTimeAnswerFormat constructor

RPDateTimeAnswerFormat({
  1. required RPDateTimeAnswerStyle dateTimeAnswerStyle,
})

Implementation

RPDateTimeAnswerFormat({required this.dateTimeAnswerStyle}) : super() {
  questionType = (dateTimeAnswerStyle == RPDateTimeAnswerStyle.TimeOfDay)
      ? RPQuestionType.TimeOfDay
      : (dateTimeAnswerStyle == RPDateTimeAnswerStyle.Date)
          ? RPQuestionType.Date
          : RPQuestionType.DateAndTime;
}