duration property

Duration? get duration

Wall-clock duration of the last execution attempt.

Implementation

Duration? get duration =>
    (startedAt != null && finishedAt != null)
        ? finishedAt!.difference(startedAt!)
        : null;