Skip to content

Commit

Permalink
notif [nfc]: Have debugReset reset more thoroughly
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gnprice committed Nov 1, 2023
1 parent dd88a84 commit 783b6a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/notifications.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 783b6a8

Please sign in to comment.