operator - method
- Duration other
override
Subtracts other
from this Duration and
returns the difference as a new Duration object.
Implementation
@override
DateRange operator -(Duration other) => DateRange.duration(startDate, duration - other);