From 85c7bc39e6f8945eb0625d592dc798cea41fe85e Mon Sep 17 00:00:00 2001 From: Greg Price Date: Tue, 31 Oct 2023 17:51:21 -0700 Subject: [PATCH] notif [nfc]: Have debugReset reset more thoroughly This has the same effect at present; but it'll save us from having to have this method explicitly reset any further fields we might add to this class. --- lib/notifications.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notifications.dart b/lib/notifications.dart index cb6f57275f7..ca63b860235 100644 --- a/lib/notifications.dart +++ b/lib/notifications.dart @@ -18,7 +18,7 @@ class NotificationService { @visibleForTesting static void debugReset() { instance.token.dispose(); - instance.token = ValueNotifier(null); + _instance = null; } /// The FCM registration token for this install of the app.