apply method

Duration apply (
  1. Duration base
)

Returns a new Duration from applying this to base.

If this is none, returns null.

Implementation

Duration apply(Duration base) {
  if (this == none) return null;
  return duration ?? base * scaleFactor;
}