EmailAlarmComponent constructor
const
EmailAlarmComponent({
- DateTimeTriggerProperty? dateTimeTrigger,
- DurationTriggerProperty? durationTrigger,
- required DescriptionProperty description,
- required SummaryProperty summary,
- required List<
AttendeeProperty> attendees, - DurationProperty? duration,
- RepeatCountProperty? repeatCount,
- List<
UriAttachmentProperty> ? uriAttachments, - 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");