duration property

Duration duration

The difference between the start and end plus one microsecond. If start and end are equal, returns Duration(microseconds: 1).

Implementation

Duration get duration =>
    end.difference(start) + const Duration(microseconds: 1);