Constructor to initialize the service and add storage event listener.
Readonly
theme$Observable for theme changes.
Gets the current theme from local storage.
The current theme or null if not set or invalid.
Sets the theme in local storage.
The theme to set or null to remove the theme.
Service to manage theme storage in local storage. Implements the ThemeProvider interface and OnDestroy lifecycle hook.