dismissAllNotifications method

  1. @override
Future<void> dismissAllNotifications()
override

Dismisses all active notifications 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> dismissAllNotifications() async {
  await methodChannel.invokeMethod(CHANNEL_METHOD_DISMISS_ALL_NOTIFICATIONS);
}