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