Skip to content

Commit 30b4a85

Browse files
committed
notif [nfc]: Have debugReset reset more thoroughly
This has the same effect at present, but it seems a bit cleaner in that we'll end up rerunning the normal initializer for each field, rather than having to duplicate them here.
1 parent 63b61e7 commit 30b4a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/notifications.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class NotificationService {
1818
@visibleForTesting
1919
static void debugReset() {
2020
instance.token.dispose();
21-
instance.token = ValueNotifier(null);
21+
_instance = null;
2222
}
2323

2424
/// The FCM registration token for this install of the app.

0 commit comments

Comments
 (0)