openDevTools method
- @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')])
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:
- Windows WebView2 (Official API - ICoreWebView2.OpenDevToolsWindow)
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',
);
}