operator + method

Duration operator +(
  1. int value
)

Advances the internal index by value and returns the new duration.

The duration is calculated as increment * (_index += value).

Implementation

Duration operator +(int value) => increment * (_index += value);