ProcedureAlarmComponent constructor

const ProcedureAlarmComponent({
  1. DateTimeTriggerProperty? dateTimeTrigger,
  2. DurationTriggerProperty? durationTrigger,
  3. UriAttachmentProperty? uriAttachment,
  4. BinaryAttachmentProperty? binaryAttachment,
  5. DurationProperty? duration,
  6. RepeatCountProperty? repeatCount,
  7. DescriptionProperty? description,
})

Implementation

const ProcedureAlarmComponent({
  this.dateTimeTrigger,
  this.durationTrigger,
  this.uriAttachment,
  this.binaryAttachment,
  this.duration,
  this.repeatCount,
  this.description,
})  : assert(
        (dateTimeTrigger != null) ^ (durationTrigger != null),
        "either dateTimeTrigger or durationTrigger must be provided, but not both",
      ),
      assert(
        (uriAttachment != null) ^ (binaryAttachment != null),
        "either uriAttachment or binaryAttachment 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");