canGoBack method
Returns a boolean value indicating whether the WebView can move backward.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebView.canGoBack)
- iOS (Official API - WKWebView.canGoBack)
- MacOS (Official API - WKWebView.canGoBack)
- Windows (Official API - ICoreWebView2.get_CanGoBack)
Implementation
@override
Future<bool> canGoBack() async {
Map<String, dynamic> args = <String, dynamic>{};
return await channel?.invokeMethod<bool>('canGoBack', args) ?? false;
}