cancelAllNotifications method

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

Cancel all notifications

Implementation

@override
Future<void> cancelAllNotifications() async {
  try {
    await methodChannel.invokeMethod<void>('cancelAllNotifications');
  } on PlatformException catch (e) {
    throw Exception('Failed to cancel all notifications: ${e.message}');
  }
}