operator * method

XPathDuration operator *(
  1. num factor
)

Multiplies this duration by a factor.

Implementation

XPathDuration operator *(num factor) => XPathDuration(
  totalMonths: (totalMonths * factor).round(),
  totalMicroseconds: (totalMicroseconds * factor).round(),
  type: type,
);