operator unary- method

XPathDuration operator unary-()

Negates this duration.

Implementation

XPathDuration operator -() => XPathDuration(
  totalMonths: -totalMonths,
  totalMicroseconds: -totalMicroseconds,
  type: type,
);