EmailAlarmComponent constructor

const EmailAlarmComponent({
  1. DateTimeTriggerProperty? dateTimeTrigger,
  2. DurationTriggerProperty? durationTrigger,
  3. required DescriptionProperty description,
  4. required SummaryProperty summary,
  5. required List<AttendeeProperty> attendees,
  6. DurationProperty? duration,
  7. RepeatCountProperty? repeatCount,
  8. List<UriAttachmentProperty>? uriAttachments,
  9. List<BinaryAttachmentProperty>? binaryAttachments,
})

Implementation

const EmailAlarmComponent({
  this.dateTimeTrigger,
  this.durationTrigger,
  required this.description,
  required this.summary,
  required this.attendees,
  this.duration,
  this.repeatCount,
  this.uriAttachments,
  this.binaryAttachments,
})  : assert(
        (dateTimeTrigger != null) ^ (durationTrigger != null),
        "either dateTimeTrigger or durationTrigger must be provided, but not both",
      ),
      assert(
        (duration == null && repeatCount == null) ||
            (duration != null && repeatCount != null),
        "'duration' and 'repeatCount' are both optional, and MUST NOT occur more than once each, but if one occurs, so MUST the other",
      ),
      super("VALARM");