RecurrenceProperties constructor
RecurrenceProperties({})
Creates an recurrence properties .
An object contains properties that hold data for the creation of Appointment.recurrenceRule for Appointment using the SfCalendar.generateRRule method.
Implementation
RecurrenceProperties(
{this.recurrenceType = RecurrenceType.daily,
this.recurrenceCount = 0,
required this.startDate,
this.endDate,
this.interval = 1,
this.recurrenceRange = RecurrenceRange.noEndDate,
List<WeekDays>? weekDays,
this.week = 0,
this.dayOfMonth = 1,
this.dayOfWeek = 1,
this.month = 1})
: weekDays = weekDays ?? <WeekDays>[],
assert(recurrenceCount >= 0),
assert(endDate == null ||
CalendarViewHelper.isSameOrBeforeDateTime(endDate, startDate)),
assert(endDate == null ||
CalendarViewHelper.isSameOrAfterDateTime(startDate, endDate)),
assert(interval >= 1),
assert(week >= -2 && week <= 5),
assert(dayOfMonth >= 1 && dayOfMonth <= 31),
assert(dayOfWeek >= 1 && dayOfWeek <= 7),
assert(month >= 1 && month <= 12);