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'll save us from
having to have this method explicitly reset any further
fields we might add to this class.
  • Loading branch information
gnprice committed Nov 1, 2023
1 parent 63b61e7 commit 85c7bc3
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 85c7bc3

Please sign in to comment.