canGoForward method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebView.canGoForward', apiUrl: 'https://developer.android.com/reference/android/webkit/WebView#canGoForward()'), IOSPlatform(apiName: 'WKWebView.canGoForward', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebview/1414962-cangoforward'), MacOSPlatform(apiName: 'WKWebView.canGoForward', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebview/1414962-cangoforward'), WindowsPlatform(apiName: 'ICoreWebView2.get_CanGoForward', apiUrl: 'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.2210.55#get_cangoforward'), LinuxPlatform(apiName: 'webkit_web_view_can_go_forward', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebView.can_go_forward.html')])
Future<bool> canGoForward()

Returns a boolean value indicating whether the WebView can move forward.

Officially Supported Platforms/Implementations:

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'WebView.canGoForward',
      apiUrl:
          'https://developer.android.com/reference/android/webkit/WebView#canGoForward()',
    ),
    IOSPlatform(
      apiName: 'WKWebView.canGoForward',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wkwebview/1414962-cangoforward',
    ),
    MacOSPlatform(
      apiName: 'WKWebView.canGoForward',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wkwebview/1414962-cangoforward',
    ),
    WindowsPlatform(
      apiName: 'ICoreWebView2.get_CanGoForward',
      apiUrl:
          'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.2210.55#get_cangoforward',
    ),
    LinuxPlatform(
      apiName: 'webkit_web_view_can_go_forward',
      apiUrl:
          'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebView.can_go_forward.html',
    ),
  ],
)
Future<bool> canGoForward() {
  throw UnimplementedError(
    '${PlatformInAppWebViewControllerMethod.canGoForward.name} is not implemented on the current platform',
  );
}