PeriodOfTimeValue constructor
PeriodOfTimeValue({})
Implementation
PeriodOfTimeValue({
required this.start,
this.end,
this.duration,
this.timeZoneIdentifier,
this.fixed = _defaultFixed,
this.durationInWeeks = _defaultDurationInWeeks,
}) : _startDateTime = DateTimeValue(
start,
fixed: fixed,
timeZoneIdentifier: timeZoneIdentifier,
),
_duration = duration == null
? null
: DurationValue(
duration,
inWeeks: durationInWeeks,
),
_endDateTime = end == null
? null
: DateTimeValue(
end,
fixed: fixed,
timeZoneIdentifier: timeZoneIdentifier,
),
super(
PeriodOfTime(
start: start,
end: end,
duration: duration,
),
ValueType.period);