clearNotificationHistory method

  1. @override
Future<bool> clearNotificationHistory()
override

Clear notification history/stack

Implementation

@override
Future<bool> clearNotificationHistory() async {
  try {
    final result = await methodChannel.invokeMethod<bool>('clearNotificationHistory');
    return result ?? false;
  } on PlatformException catch (e) {
    debugPrint('Error clearing notification history: ${e.message}');
    return false;
  }
}