cancelNotificationsByChannelKey method

  1. @override
Future<void> cancelNotificationsByChannelKey(
  1. String channelKey
)
override

Cancels all active notifications and schedules with the specified channelKey.

The channelKey parameter is a String that represents the unique key of the channel that the notifications and schedules belong to.

This method can be used to cancel all active notifications and schedules that belong to a specific channel.

This method returns a Future that resolves when all active notifications and schedules with the specified channel key have been cancelled.

Implementation

@override
Future<void> cancelNotificationsByChannelKey(String channelKey) async {
  await methodChannel.invokeMethod(
      CHANNEL_METHOD_CANCEL_NOTIFICATIONS_BY_CHANNEL_KEY, channelKey);
}