cancelScheduledNotification method
Cancels notifications
Implementation
void cancelScheduledNotification() {
print("Cancel");
if (parent.notificationModel != null) {
if (parent.notificationModel.id != null) {
FlutterLocalNotificationsPlugin plugin =
FlutterLocalNotificationsPlugin();
plugin.cancel(parent.notificationModel.note);
NotesDatabaseService.db
.deleteNotificationInDB(parent.notificationModel);
parent.notificationModel = null;
}
}
}