onAlarm property

EventStream<Alarm> get onAlarm

Fired when an alarm has elapsed. Useful for event pages. |alarm|: The alarm that has elapsed.

Implementation

EventStream<Alarm> get onAlarm =>
    $js.chrome.alarms.onAlarm.asStream(($c) => ($js.Alarm alarm) {
          return $c(Alarm.fromJS(alarm));
        }.toJS);