WebStorage constructor

WebStorage({
  1. required PlatformLocalStorage localStorage,
  2. required PlatformSessionStorage sessionStorage,
})

Class that provides access to the JavaScript Web Storage API: window.sessionStorage and window.localStorage. It used by PlatformInAppWebViewController.webStorage.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS
  • Web
  • Windows

Implementation

WebStorage(
    {required PlatformLocalStorage localStorage,
    required PlatformSessionStorage sessionStorage})
    : this.fromPlatformCreationParams(
          params: PlatformWebStorageCreationParams(
              localStorage: localStorage, sessionStorage: sessionStorage));