extendBy method

void extendBy(
  1. int additionalDays
)

Adds additionalDays to the visible plan length. Useful for "+ Add another week" affordances when the user wants to schedule items past the current max-day. The new length is persisted into the controller; callers usually also adjust their underlying total-days computation.

Implementation

void extendBy(int additionalDays) {
  if (additionalDays <= 0) return;
  setTotalDays(_totalDays + additionalDays);
}