cancel method

Future<void> cancel(
  1. int id
)

Cancels notification. Called when the alarm is cancelled or when an alarm is overriden.

Implementation

Future<void> cancel(int id) async {
  await localNotif.cancel(id);
  alarmPrint('Notification with id $id canceled');
}