goTo method

Future<void> goTo({
  1. required WebHistoryItem historyItem,
})

Navigates to a WebHistoryItem from the back-forward WebHistory.list and sets it as the current item.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Web <iframe> but requires same origin
  • Windows WebView2

Parameters - Officially Supported Platforms/Implementations:

  • historyItem: all platforms

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<void> goTo({required WebHistoryItem historyItem}) =>
    platform.goTo(historyItem: historyItem);