@@ -26,7 +26,8 @@ @implementation FlutterLocalNotificationsPlugin {
2626 @" periodicallyShowWithDuration" ;
2727NSString *const CANCEL_METHOD = @" cancel" ;
2828NSString *const CANCEL_ALL_METHOD = @" cancelAll" ;
29- NSString *const CANCEL_ALL_PENDING_NOTIFICATIONS_METHOD = @" cancelAllPendingNotifications" ;
29+ NSString *const CANCEL_ALL_PENDING_NOTIFICATIONS_METHOD =
30+ @" cancelAllPendingNotifications" ;
3031NSString *const PENDING_NOTIFICATION_REQUESTS_METHOD =
3132 @" pendingNotificationRequests" ;
3233NSString *const GET_ACTIVE_NOTIFICATIONS_METHOD = @" getActiveNotifications" ;
@@ -186,7 +187,8 @@ - (void)handleMethodCall:(FlutterMethodCall *)call
186187 [self cancel: ((NSNumber *)call.arguments) result: result];
187188 } else if ([CANCEL_ALL_METHOD isEqualToString: call.method]) {
188189 [self cancelAll: result];
189- } else if ([CANCEL_ALL_PENDING_NOTIFICATIONS_METHOD isEqualToString: call.method]) {
190+ } else if ([CANCEL_ALL_PENDING_NOTIFICATIONS_METHOD
191+ isEqualToString: call.method]) {
190192 [self cancelAllPendingNotifications: result];
191193 } else if ([GET_NOTIFICATION_APP_LAUNCH_DETAILS_METHOD
192194 isEqualToString: call.method]) {
@@ -579,8 +581,9 @@ - (void)cancelAll:(FlutterResult _Nonnull)result API_AVAILABLE(ios(10.0)) {
579581 result (nil );
580582}
581583
582- - (void )cancelAllPendingNotifications : (FlutterResult _Nonnull)result API_AVAILABLE(ios(10.0 )) {
583- UNUserNotificationCenter *center =
584+ - (void )cancelAllPendingNotifications : (FlutterResult _Nonnull)result
585+ API_AVAILABLE(ios(10.0 )) {
586+ UNUserNotificationCenter *center =
584587 [UNUserNotificationCenter currentNotificationCenter ];
585588 [center removeAllPendingNotificationRequests ];
586589 result (nil );
0 commit comments