restoreState method
- Uint8List state
Restores the state of this WebView from the given state returned by the saveState method.
If it is called after this WebView has had a chance to build state (load pages, create a back/forward list, etc.),
there may be undesirable side-effects.
Returns true if the state was restored successfully, otherwise false.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.restoreState):
- This method doesn't restore the display data for this WebView.
- iOS WKWebView 15.0+ (Official API - WKWebView.interactionState)
- macOS WKWebView 12.0+ (Official API - WKWebView.interactionState)
- Linux WPE WebKit
Parameters - Officially Supported Platforms/Implementations:
state: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<bool> restoreState(Uint8List state) => platform.restoreState(state);