AudioAlarmComponent constructor
const
AudioAlarmComponent({
- DateTimeTriggerProperty? dateTimeTrigger,
- DurationTriggerProperty? durationTrigger,
- DurationProperty? duration,
- RepeatCountProperty? repeatCount,
- UriAttachmentProperty? uriAttachment,
- BinaryAttachmentProperty? binaryAttachment,
Implementation
const AudioAlarmComponent({
this.dateTimeTrigger,
this.durationTrigger,
this.duration,
this.repeatCount,
this.uriAttachment,
this.binaryAttachment,
}) : 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",
),
assert(
uriAttachment == null || binaryAttachment == null,
"cannot supply both uriAttachment and binaryAttachment",
),
super("VALARM");