operator - method

  1. @override
DateRange operator -(
  1. 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);