abs method

Returns the absolute value of this duration.

Implementation

XPathDuration abs() => XPathDuration(
  totalMonths: totalMonths.abs(),
  totalMicroseconds: totalMicroseconds.abs(),
  type: type,
);