restoreState method

Future<bool> restoreState(
  1. 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:

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);