add method

Duration add(
  1. Duration duration, [
  2. Duration? secondDuration
])

add duration

Implementation

Duration add(Duration duration, [Duration? secondDuration]) => Duration(
    microseconds: inMicroseconds +
        duration.inMicroseconds +
        (secondDuration?.inMicroseconds ?? 0));