description

# operator unary- method

Duration operator unary-()

Creates a new Duration with the opposite sign of this Duration.

The returned Duration has the absolute length as this one, but has the opposite sign (as reported by isNegative) where possible.

## Implementation

    // Using subtraction helps dart2js avoid negative zeros.
    Duration operator -() => Duration._microseconds(0 - inMicroseconds);