getCopyBackForwardList method
Gets the WebHistory for this WebView. This contains the back/forward list for use in querying each item in the history stack. This contains only a snapshot of the current state. Multiple calls to this method may return different objects. The object returned from this method will not be updated to reflect any new state.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebView.copyBackForwardList)
- iOS (Official API - WKWebView.backForwardList)
- MacOS (Official API - WKWebView.backForwardList)
- Windows
Implementation
Future<WebHistory?> getCopyBackForwardList() =>
platform.getCopyBackForwardList();