WebStorageType class Null safety
Class that represents the type of Web Storage:
Used by the Storage class.
- LOCAL_STORAGE → const WebStorageType
window.localStorage: same as SESSION_STORAGE, but persists even when the browser is closed and reopened.
- SESSION_STORAGE → const WebStorageType
window.sessionStorage: maintains a separate storage area for each given origin that's available for the duration of the page session (as long as the browser is open, including page reloads and restores).