openDevTools method

  1. @SupportedPlatforms.new(platforms: [WindowsPlatform(apiName: 'ICoreWebView2.OpenDevToolsWindow', apiUrl: 'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.2210.55#opendevtoolswindow')])
Future<void> openDevTools()

Opens the DevTools window for the current document in the WebView. Does nothing if run when the DevTools window is already open.

Officially Supported Platforms/Implementations:

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

Implementation

@SupportedPlatforms(
  platforms: [
    WindowsPlatform(
      apiName: 'ICoreWebView2.OpenDevToolsWindow',
      apiUrl:
          'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.2210.55#opendevtoolswindow',
    ),
  ],
)
Future<void> openDevTools() {
  throw UnimplementedError(
    '${PlatformInAppWebViewControllerMethod.openDevTools.name} is not implemented on the current platform',
  );
}