cancelNotificationsByGroupKey method
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) async {
await methodChannel.invokeMethod(
CHANNEL_METHOD_CANCEL_NOTIFICATIONS_BY_GROUP_KEY, groupKey);
}