webStorage property
Provides access to the JavaScript Web Storage API: window.sessionStorage and window.localStorage.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Use the PlatformInAppWebViewController.isPropertySupported method to check if this property is supported at runtime.
Implementation
WebStorage get webStorage =>
WebStorage.fromPlatform(platform: platform.webStorage);