apply method

Duration apply (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 == null ? base * scaleFactor : duration;
}