XPathDuration.yearMonth constructor

const XPathDuration.yearMonth(
  1. int totalMonths
)

Creates a new XPathDuration representing an xs:yearMonthDuration.

Implementation

const new yearMonth(int totalMonths)
  : this(totalMonths: totalMonths, type: xsYearMonthDuration);