operator unary- method

  1. @override
Duration operator unary-()
override

Subtracts other from this Duration and returns the difference as a new Duration object.

Implementation

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