cancelNotificationsByGroupKey method

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

Cancels all active notifications and schedules with the specified groupKey.

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

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

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

Implementation

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