DateTimeOrDuration constructor
DateTimeOrDuration(
- DateTime? dateTime,
- IsoDuration? duration
Implementation
DateTimeOrDuration(this.dateTime, this.duration)
: assert(dateTime != null || duration != null,
'Either duration or dateTime must be set'),
assert(!(duration != null && dateTime != null),
'Either duration or dateTime must be set, but not both');