operator unary- method

  1. @override
Duration operator unary-()
override

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

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

Implementation

@override
Duration operator -() => -value;