operator unary- method
Creates a newDuration with the opposite direction of thisDuration.
The returnedDuration has the same length as this one, but will have theopposite sign (as reported byisNegative) as this one where possible.
Implementation
// Using subtraction helps dart2js avoid negative zeros.Duration operator -() => Duration._microseconds(0 - _duration);