operator / method
Divides this duration by a numeric divisor.
Implementation
XPathDuration operator /(num divisor) {
if (divisor == 0) {
throw ArgumentError.value(divisor, 'divisor', 'Cannot divide by zero');
}
return XPathDuration(
totalMonths: (totalMonths / divisor).round(),
totalMicroseconds: (totalMicroseconds / divisor).round(),
type: type,
);
}