Recurrence constructor

Recurrence({
  1. required Frequency? frequency,
  2. int? ocurrences,
  3. DateTime? endDate,
  4. int interval = 1,
  5. String? rRule,
})

Implementation

Recurrence({
  required this.frequency,
  this.ocurrences,
  this.endDate,
  this.interval = 1,
  this.rRule,
}) : assert(ocurrences == null || endDate == null,
          "Specify either ocurrences or endDate");