cancelAllNotifications method

Future<void> cancelAllNotifications()

Cancels all notifications

Implementation

Future<void> cancelAllNotifications() async {
  if (!_isInitialized) {
    throw StateError(
        'PlatformNotificationService must be initialized before canceling notifications');
  }

  await _flutterLocalNotificationsPlugin.cancelAll();
}