canGoBack method
Returns a boolean value indicating whether the WebView can move backward.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.canGoBack)
- iOS WKWebView (Official API - WKWebView.canGoBack)
- macOS WKWebView (Official API - WKWebView.canGoBack)
- Windows WebView2 (Official API - ICoreWebView2.get_CanGoBack)
- Linux WPE WebKit (Official API - webkit_web_view_can_go_back)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<bool> canGoBack() => platform.canGoBack();