operator - method

XPathDuration operator -(
  1. XPathDuration other
)

Subtracts another XPathDuration from this one.

Implementation

XPathDuration operator -(XPathDuration other) => XPathDuration(
  totalMonths: totalMonths - other.totalMonths,
  totalMicroseconds: totalMicroseconds - other.totalMicroseconds,
  type: type == other.type ? type : xsDuration,
);