duration property

Duration get duration

Returns a Duration of the time between start and end.

See Date.difference for more details.

Implementation

Duration get duration => end.difference(start);