PersianDateRange constructor
- PersianDate start,
- PersianDate end
Creates the range from start to end, both included.
Throws ArgumentError when end is before start. A one-day range
has the same start and end.
Implementation
PersianDateRange(this.start, this.end) {
if (end.isBefore(start)) {
throw ArgumentError.value(
'$end', 'end', 'Must not be before start $start');
}
}