XPathDuration.fromValues constructor

XPathDuration.fromValues(
  1. int totalMonths,
  2. int totalMicroseconds, [
  3. XPathType type = xsDuration
])

Creates a new XPathDuration from years, months, and microsecond components.

Implementation

factory fromValues(
  int totalMonths,
  int totalMicroseconds, [
  XPathType type = xsDuration,
]) => XPathDuration(
  totalMonths: totalMonths,
  totalMicroseconds: totalMicroseconds,
  type: type,
);