DisplayAlarmComponent constructor

const DisplayAlarmComponent({
  1. DateTimeTriggerProperty? dateTimeTrigger,
  2. DurationTriggerProperty? durationTrigger,
  3. DurationProperty? duration,
  4. 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");