setInspectable method

Future<void> setInspectable(
  1. bool inspectable
)

Whether to enable tools for debugging the current WKWebView content.

It needs to be activated in each WKWebView where you want to enable it.

Starting from macOS version 13.3, iOS version 16.4, and tvOS version 16.4, the default value is set to false.

Defaults to true in previous versions.

Implementation

Future<void> setInspectable(bool inspectable) {
  return _webView.setInspectable(inspectable);
}