DisplayAlarmComponent constructor
const
DisplayAlarmComponent({
- DateTimeTriggerProperty? dateTimeTrigger,
- DurationTriggerProperty? durationTrigger,
- DurationProperty? duration,
- RepeatCountProperty? repeatCount,
Implementation
const DisplayAlarmComponent({
this.dateTimeTrigger,
this.durationTrigger,
this.duration,
this.repeatCount,
}) : 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");