RecurrenceRule constructor

RecurrenceRule(
  1. RecurrenceFrequency? recurrenceFrequency,
  2. {int? totalOccurrences,
  3. int? interval,
  4. DateTime? endDate,
  5. List<DayOfWeek>? daysOfWeek,
  6. int? dayOfMonth,
  7. MonthOfYear? monthOfYear,
  8. WeekNumber? weekOfMonth}
)

Implementation

RecurrenceRule(this.recurrenceFrequency,
    {this.totalOccurrences,
    this.interval,
    this.endDate,
    this.daysOfWeek,
    this.dayOfMonth,
    this.monthOfYear,
    this.weekOfMonth})
    : assert(!(endDate != null && totalOccurrences != null),
          'Cannot specify both an end date and total occurrences for a recurring event');