shift method

Period shift(
  1. Duration duration
)

Returns a new Period that is shifted by the given duration .

Implementation

Period shift(Duration duration) {
  return Period(start: start.add(duration), end: end.add(duration));
}