setTotalDays method

void setTotalDays(
  1. int totalDays
)

Implementation

void setTotalDays(int totalDays) {
  assert(totalDays > 0, 'totalDays must be > 0');
  if (_totalDays == totalDays) return;
  _totalDays = totalDays;
  _selectedDay = PlanDayCoordinator.clampDay(_selectedDay, totalDays);
  notifyListeners();
}