canGoBack method
{@template flutter_webview_platform_interface.PlatformInAppWebViewController.canGoBack} 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) @{endtemplate}
Implementation
@override
Future<bool> canGoBack() async {
Map<String, dynamic> args = <String, dynamic>{};
return await channel?.invokeMethod<bool>('canGoBack', args) ?? false;
}