DateAnswerFormat constructor

DateAnswerFormat({
  1. DateTime? defaultDate,
  2. DateTime? minDate,
  3. DateTime? maxDate,
})

Implementation

DateAnswerFormat({
  this.defaultDate,
  this.minDate,
  this.maxDate,
})  : assert(minDate == null || maxDate == null || minDate.isBefore(maxDate)),
      assert(defaultDate == null ||
          minDate == null ||
          defaultDate.isAtSameMomentAs(minDate) ||
          defaultDate.isAfter(minDate)),
      assert(defaultDate == null ||
          maxDate == null ||
          defaultDate.isAtSameMomentAs(maxDate) ||
          defaultDate.isBefore(maxDate)),
      super();