operator unary- method Null safety
Returns a new Duration
representing this Duration
negated.
The returned Duration
has the same length as this one, but will have the
opposite sign of this one.
Implementation
// Using subtraction helps dart2js avoid negative zeros.
Duration operator -() => Duration._microseconds(0 - _duration);