cancelAllPendingNotifications method

Future<void> cancelAllPendingNotifications()

Cancels/removes all pending notifications.

This only applies to notifications that have been scheduled.

The method is supported on Android, iOS and macOS. On other platforms, an UnimplementedError will be thrown.

Implementation

Future<void> cancelAllPendingNotifications() async {
  await FlutterLocalNotificationsPlatform.instance
      .cancelAllPendingNotifications();
}