XPathDuration.fromDuration constructor
Creates a new XPathDuration from a Dart Duration object.
Implementation
factory fromDuration(
Duration duration, [
XPathType type = xsDayTimeDuration,
]) => XPathDuration(totalMicroseconds: duration.inMicroseconds, type: type);