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