stopAlarm static method
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);
}
}