cancelSchedule method

  1. @override
Future<void> cancelSchedule(
  1. int id
)
override

Cancels a single scheduled notification, without dismissing the active notification.

The id parameter is an int that represents the unique identifier of the scheduled notification to cancel. This method cancels only the schedule associated with the notification, leaving the notification itself intact.

If the notification has not been shown yet but is scheduled to be shown in the future, the schedule will be removed and the notification will not be shown. If the notification is already shown, this method has no effect on the currently active notification.

This method returns a Future that resolves to void.

Implementation

@override
Future<void> cancelSchedule(int id) async {}