WeeklyPattern.withStartDateAndIntervalAndDaysOfTheWeek constructor

WeeklyPattern.withStartDateAndIntervalAndDaysOfTheWeek(
  1. TZDateTime startDate,
  2. int interval,
  3. List<DayOfTheWeek> daysOfTheWeek
)
Initializes a new instance of the The date and time when the recurrence starts. The number of weeks between each occurrence. The days of the week when occurrences happen.

Implementation

WeeklyPattern.withStartDateAndIntervalAndDaysOfTheWeek(
  super.startDate,
  super.interval,
  List<DayOfTheWeek> daysOfTheWeek,
) : super.withStartDateAndInterval() {
  _daysOfTheWeek.AddRange(daysOfTheWeek);
  _daysOfTheWeek.addOnChangeEvent(_DaysOfTheWeekChanged);
}