setOpenResourceHandler method

void setOpenResourceHandler(
  1. JSFunction? callback
)

Specifies the function to be called when the user clicks a resource link in the Developer Tools window. To unset the handler, either call the method with no parameters or pass null as the parameter. callback A function that is called when the user clicks on a valid resource link in Developer Tools window. Note that if the user clicks an invalid URL or an XHR, this function is not called.

Implementation

void setOpenResourceHandler(JSFunction? callback) {
  $js.chrome.devtools.panels.setOpenResourceHandler(callback);
}