stopAlarm static method

Future<void> stopAlarm(
  1. int? id
)

Stops the alarm.

Implementation

static Future<void> stopAlarm(int? id) async {
  if (id != null &&
      Alarm.getAlarm(id)?.stopOnNotificationOpen != null &&
      Alarm.getAlarm(id)!.stopOnNotificationOpen) {
    await Alarm.stop(id);
  }
}