operator + method

XPathDuration operator +(
  1. XPathDuration other
)

Adds another XPathDuration to this one.

Implementation

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