Period constructor
Period(
- DateTime startDate, {
- IsoDuration? duration,
- DateTime? endDate,
Implementation
Period(this.startDate, {this.duration, this.endDate})
: assert(duration != null || endDate != null,
'Either duration or endDate must be set.'),
assert(!(duration != null && endDate != null),
'Not both duration and endDate can be set at the same time.');