XPathDuration.fromDuration constructor

XPathDuration.fromDuration(
  1. Duration duration, [
  2. XPathType type = xsDayTimeDuration
])

Creates a new XPathDuration from a Dart Duration object.

Implementation

factory fromDuration(
  Duration duration, [
  XPathType type = xsDayTimeDuration,
]) => XPathDuration(totalMicroseconds: duration.inMicroseconds, type: type);