dismissNotificationsByChannelKey method

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

Dismisses all active notifications with the specified channelKey, without cancelling their respective schedules.

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

This method can be used to dismiss all active notifications that belong to a specific channel, without cancelling their respective schedules. Note that dismissing a notification does not remove it from the notification history.

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

Implementation

@override
Future<void> dismissNotificationsByChannelKey(String channelKey) {
  return AwesomeNotificationsPlatform.instance
      .dismissNotificationsByChannelKey(channelKey);
}