goBack method
Goes back in the history of the WebView.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.goBack)
- iOS WKWebView (Official API - WKWebView.goBack)
- macOS WKWebView (Official API - WKWebView.goBack)
- Web <iframe> but requires same origin (Official API - History.back)
- Windows WebView2 (Official API - ICoreWebView2.GoBack)
- Linux WPE WebKit (Official API - webkit_web_view_go_back)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> goBack() => platform.goBack();