cancelSchedulesByChannelKey method

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

Cancels all active schedules with the specified channelKey, without dismissing the respective notifications.

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

This method can be used to cancel all active schedules that belong to a specific channel, without dismissing the respective notifications.

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

Implementation

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