duration property

Duration get duration

Gets the duration of the date range.

Implementation

Duration get duration => endDate.difference(startDate);