ExceptionDateTimesProperty constructor

ExceptionDateTimesProperty(
  1. List<DateTime> values, {
  2. ValueType valueType = ValueType.dateTime,
  3. String? timeZoneIdentifier,
})

Implementation

ExceptionDateTimesProperty(
  List<DateTime> values, {
  this.valueType = ValueType.dateTime,
  this.timeZoneIdentifier,
})  : assert(
        valueType == ValueType.date || valueType == ValueType.dateTime,
        "valueType must either be date or dateTime",
      ),
      super(
        "EXDATE",
        CalendarValueList(
          values
              .map((e) => valueType == ValueType.date
                  ? DateValue(e)
                  : DateTimeValue(e))
              .toList(),
        ),
      );