dismissNotificationsByGroupKey method

  1. @override
Future<void> dismissNotificationsByGroupKey(
  1. String groupKey
)
override

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

The groupKey parameter is a String that represents the unique key of the group that the notifications belong to.

This method can be used to dismiss all active notifications that belong to a specific group, 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 group key have been dismissed.

Implementation

@override
Future<void> dismissNotificationsByGroupKey(String groupKey) async {
  await methodChannel.invokeMethod(
      CHANNEL_METHOD_DISMISS_NOTIFICATIONS_BY_GROUP_KEY, groupKey);
}