Alarm constructor

Alarm({
  1. required String name,
  2. required double scheduledTime,
  3. double? periodInMinutes,
})

Implementation

Alarm({
  /// Name of this alarm.
  required String name,

  /// Time at which this alarm was scheduled to fire, in milliseconds past the
  /// epoch (e.g. `Date.now() + n`).  For performance reasons, the
  /// alarm may have been delayed an arbitrary amount beyond this.
  required double scheduledTime,

  /// If not null, the alarm is a repeating alarm and will fire again in
  /// [periodInMinutes] minutes.
  double? periodInMinutes,
}) : _wrapped = $js.Alarm(
        name: name,
        scheduledTime: scheduledTime,
        periodInMinutes: periodInMinutes,
      );