cancelTestNotification static method

Future<void> cancelTestNotification(
  1. FlutterLocalNotificationsPlugin plugin
)

Cancels the test notification.

Implementation

static Future<void> cancelTestNotification(
  FlutterLocalNotificationsPlugin plugin,
) async {
  try {
    await plugin.cancel(999999);
    safeDebugLog('🗑️ Test notification cancelled');
  } catch (e) {
    safeDebugLog('❌ Failed to cancel test notification: $e');
  }
}